home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1998-05-21 | 219.7 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 75 73 74 69 6e 62 |piled by| justinb|
|00000020| 40 65 62 6f 6e 79 2e 63 | 72 61 79 2e 63 6f 6d 20 |@ebony.c|ray.com |
|00000030| 6f 6e 20 4d 6f 6e 20 4d | 61 72 20 20 39 20 31 32 |on Mon M|ar 9 12|
|00000040| 3a 35 38 3a 32 31 20 31 | 39 39 38 0a 3b 3b 3b 20 |:58:21 1|998.;;; |
|00000050| 66 72 6f 6d 20 66 69 6c | 65 20 2f 68 6f 6d 65 2f |from fil|e /home/|
|00000060| 61 73 70 65 6e 30 37 2f | 6a 75 73 74 69 6e 62 2f |aspen07/|justinb/|
|00000070| 72 6f 6f 74 73 2f 66 72 | 65 65 77 61 72 65 2f 78 |roots/fr|eeware/x|
|00000080| 65 6d 61 63 73 2f 32 30 | 2e 33 2f 78 65 6d 61 63 |emacs/20|.3/xemac|
|00000090| 73 2d 32 30 2e 33 2f 6c | 69 73 70 2f 65 66 73 2f |s-20.3/l|isp/efs/|
|000000a0| 65 66 73 2e 65 6c 0a 3b | 3b 3b 20 65 6d 61 63 73 |efs.el.;|;; emacs|
|000000b0| 20 76 65 72 73 69 6f 6e | 20 32 30 2e 34 20 22 45 | version| 20.4 "E|
|000000c0| 6d 65 72 61 6c 64 22 20 | 58 45 6d 61 63 73 20 20 |merald" |XEmacs |
|000000d0| 4c 75 63 69 64 2e 0a 3b | 3b 3b 20 62 79 74 65 63 |Lucid..;|;; bytec|
|000000e0| 6f 6d 70 20 76 65 72 73 | 69 6f 6e 20 32 2e 32 35 |omp vers|ion 2.25|
|000000f0| 20 58 45 6d 61 63 73 3b | 20 32 32 2d 4d 61 72 2d | XEmacs;| 22-Mar-|
|00000100| 39 36 2e 0a 3b 3b 3b 20 | 6f 70 74 69 6d 69 7a 61 |96..;;; |optimiza|
|00000110| 74 69 6f 6e 20 69 73 20 | 6f 6e 2e 0a 3b 3b 3b 20 |tion is |on..;;; |
|00000120| 74 68 69 73 20 66 69 6c | 65 20 75 73 65 73 20 6f |this fil|e uses o|
|00000130| 70 63 6f 64 65 73 20 77 | 68 69 63 68 20 64 6f 20 |pcodes w|hich do |
|00000140| 6e 6f 74 20 65 78 69 73 | 74 20 69 6e 20 45 6d 61 |not exis|t in Ema|
|00000150| 63 73 20 31 39 2e 0a 0a | 28 69 66 20 28 61 6e 64 |cs 19...|(if (and|
|00000160| 20 28 62 6f 75 6e 64 70 | 20 27 65 6d 61 63 73 2d | (boundp| 'emacs-|
|00000170| 76 65 72 73 69 6f 6e 29 | 0a 09 20 28 6f 72 20 28 |version)|.. (or (|
|00000180| 61 6e 64 20 28 62 6f 75 | 6e 64 70 20 27 65 70 6f |and (bou|ndp 'epo|
|00000190| 63 68 3a 3a 76 65 72 73 | 69 6f 6e 29 20 65 70 6f |ch::vers|ion) epo|
|000001a0| 63 68 3a 3a 76 65 72 73 | 69 6f 6e 29 0a 09 20 20 |ch::vers|ion).. |
|000001b0| 20 20 20 28 73 74 72 69 | 6e 67 2d 6c 65 73 73 70 | (stri|ng-lessp|
|000001c0| 20 65 6d 61 63 73 2d 76 | 65 72 73 69 6f 6e 20 22 | emacs-v|ersion "|
|000001d0| 32 30 22 29 29 29 0a 20 | 20 20 20 28 65 72 72 6f |20"))). | (erro|
|000001e0| 72 20 22 60 65 66 73 2e | 65 6c 27 20 77 61 73 20 |r "`efs.|el' was |
|000001f0| 63 6f 6d 70 69 6c 65 64 | 20 66 6f 72 20 45 6d 61 |compiled| for Ema|
|00000200| 63 73 20 32 30 22 29 29 | 0a 0a 28 6f 72 20 28 62 |cs 20"))|..(or (b|
|00000210| 6f 75 6e 64 70 20 27 63 | 75 72 72 65 6e 74 2d 6c |oundp 'c|urrent-l|
|00000220| 6f 61 64 2d 6c 69 73 74 | 29 20 28 73 65 74 71 20 |oad-list|) (setq |
|00000230| 63 75 72 72 65 6e 74 2d | 6c 6f 61 64 2d 6c 69 73 |current-|load-lis|
|00000240| 74 20 6e 69 6c 29 29 0a | 0a 0a 28 62 79 74 65 2d |t nil)).|..(byte-|
|00000250| 63 6f 64 65 20 22 c0 c1 | 21 88 c2 c3 21 88 c2 c4 |code "..|!...!...|
|00000260| 21 88 c2 c5 21 88 c2 c6 | 21 88 c2 c7 21 88 c2 c8 |!...!...|!...!...|
|00000270| 21 88 c2 c9 21 87 22 20 | 5b 70 72 6f 76 69 64 65 |!...!." |[provide|
|00000280| 20 65 66 73 20 72 65 71 | 75 69 72 65 20 62 61 63 | efs req|uire bac|
|00000290| 6b 71 75 6f 74 65 20 63 | 6f 6d 69 6e 74 20 65 66 |kquote c|omint ef|
|000002a0| 73 2d 64 65 66 75 6e 20 | 65 66 73 2d 6e 65 74 72 |s-defun |efs-netr|
|000002b0| 63 20 65 66 73 2d 63 75 | 20 65 66 73 2d 6f 76 77 |c efs-cu| efs-ovw|
|000002c0| 72 74 20 65 66 73 2d 66 | 6e 68 5d 20 32 29 0a 23 |rt efs-f|nh] 2).#|
|000002d0| 40 33 30 20 53 75 62 6d | 69 74 20 61 20 62 75 67 |@30 Subm|it a bug|
|000002e0| 20 72 65 70 6f 72 74 20 | 66 6f 72 20 65 66 73 2e | report |for efs.|
|000002f0| 1f 0a 28 61 75 74 6f 6c | 6f 61 64 20 27 65 66 73 |..(autol|oad 'efs|
|00000300| 2d 72 65 70 6f 72 74 2d | 62 75 67 20 22 65 66 73 |-report-|bug "efs|
|00000310| 2d 72 65 70 6f 72 74 22 | 20 27 28 23 24 20 2e 20 |-report"| '(#$ . |
|00000320| 37 32 34 29 20 74 29 0a | 23 40 35 37 20 4c 6f 67 |724) t).|#@57 Log|
|00000330| 69 6e 20 74 6f 20 74 68 | 65 20 67 61 74 65 77 61 |in to th|e gatewa|
|00000340| 79 20 6d 61 63 68 69 6e | 65 20 61 6e 64 20 66 69 |y machin|e and fi|
|00000350| 72 65 20 75 70 20 61 6e | 20 46 54 50 20 63 6c 69 |re up an| FTP cli|
|00000360| 65 6e 74 2e 1f 0a 28 61 | 75 74 6f 6c 6f 61 64 20 |ent...(a|utoload |
|00000370| 27 65 66 73 2d 67 77 70 | 2d 73 74 61 72 74 20 22 |'efs-gwp|-start "|
|00000380| 65 66 73 2d 67 77 70 22 | 20 27 28 23 24 20 2e 20 |efs-gwp"| '(#$ . |
|00000390| 38 31 33 29 29 0a 28 61 | 75 74 6f 6c 6f 61 64 20 |813)).(a|utoload |
|000003a0| 27 65 66 73 2d 6b 65 72 | 62 65 72 6f 73 2d 6c 6f |'efs-ker|beros-lo|
|000003b0| 67 69 6e 20 22 65 66 73 | 2d 6b 65 72 62 65 72 6f |gin "efs|-kerbero|
|000003c0| 73 22 29 0a 23 40 32 39 | 20 49 6e 73 65 72 74 20 |s").#@29| Insert |
|000003d0| 61 20 64 69 72 65 63 74 | 6f 72 79 20 6c 69 73 74 |a direct|ory list|
|000003e0| 69 6e 67 2e 1f 0a 28 61 | 75 74 6f 6c 6f 61 64 20 |ing...(a|utoload |
|000003f0| 27 65 66 73 2d 69 6e 73 | 65 72 74 2d 64 69 72 65 |'efs-ins|ert-dire|
|00000400| 63 74 6f 72 79 20 22 65 | 66 73 2d 64 69 72 65 64 |ctory "e|fs-dired|
|00000410| 22 20 27 28 23 24 20 2e | 20 39 36 39 29 29 0a 28 |" '(#$ .| 969)).(|
|00000420| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 c1 c2 5c 22 |byte-cod|e "...\"|
|00000430| 88 c0 c3 c4 5c 22 87 22 | 20 5b 61 75 74 6f 6c 6f |....\"."| [autolo|
|00000440| 61 64 20 65 66 73 2d 73 | 65 74 2d 6d 64 74 6d 2d |ad efs-s|et-mdtm-|
|00000450| 6f 66 20 22 65 66 73 2d | 63 70 2d 70 22 20 64 69 |of "efs-|cp-p" di|
|00000460| 66 66 2d 6c 61 74 65 73 | 74 2d 62 61 63 6b 75 70 |ff-lates|t-backup|
|00000470| 2d 66 69 6c 65 20 22 64 | 69 66 66 22 5d 20 33 29 |-file "d|iff"] 3)|
|00000480| 0a 23 40 33 38 20 52 65 | 61 64 20 61 20 70 61 73 |.#@38 Re|ad a pas|
|00000490| 73 77 6f 72 64 20 66 72 | 6f 6d 20 74 68 65 20 6d |sword fr|om the m|
|000004a0| 69 6e 69 62 75 66 66 65 | 72 2e 1f 0a 28 61 75 74 |inibuffe|r...(aut|
|000004b0| 6f 6c 6f 61 64 20 27 72 | 65 61 64 2d 70 61 73 73 |oload 'r|ead-pass|
|000004c0| 77 64 20 22 70 61 73 73 | 77 64 22 20 27 28 23 24 |wd "pass|wd" '(#$|
|000004d0| 20 2e 20 31 31 35 38 29 | 20 74 29 0a 28 62 79 74 | . 1158)| t).(byt|
|000004e0| 65 2d 63 6f 64 65 20 22 | c0 c1 c2 4f c3 c4 c5 c2 |e-code "|...O....|
|000004f0| 4f 51 16 06 c6 0e 07 42 | 16 07 c8 16 09 c9 0e 07 |OQ.....B|........|
|00000500| 42 16 07 c1 87 22 20 5b | 22 24 65 66 73 20 72 65 |B...." [|"$efs re|
|00000510| 6c 65 61 73 65 3a 20 31 | 2e 31 35 20 24 22 20 31 |lease: 1|.15 $" 1|
|00000520| 34 20 2d 32 20 22 2f 22 | 20 22 23 52 65 76 69 73 |4 -2 "/"| "#Revis|
|00000530| 69 6f 6e 3a 20 31 2e 35 | 36 20 24 22 20 31 31 20 |ion: 1.5|6 $" 11 |
|00000540| 65 66 73 2d 76 65 72 73 | 69 6f 6e 20 63 75 72 72 |efs-vers|ion curr|
|00000550| 65 6e 74 2d 6c 6f 61 64 | 2d 6c 69 73 74 20 31 39 |ent-load|-list 19|
|00000560| 37 30 20 65 66 73 2d 74 | 69 6d 65 2d 7a 65 72 6f |70 efs-t|ime-zero|
|00000570| 5d 20 35 29 0a 23 40 36 | 37 20 4c 69 73 74 20 6f |] 5).#@6|7 List o|
|00000580| 66 20 68 6f 73 74 20 74 | 79 70 65 73 20 74 68 61 |f host t|ypes tha|
|00000590| 74 20 63 61 6e 27 74 20 | 74 61 6b 65 20 55 4e 49 |t can't |take UNI|
|000005a0| 58 20 6c 73 2d 73 74 79 | 6c 65 20 6c 69 73 74 69 |X ls-sty|le listi|
|000005b0| 6e 67 20 6f 70 74 69 6f | 6e 73 2e 1f 0a 28 64 65 |ng optio|ns...(de|
|000005c0| 66 63 6f 6e 73 74 20 65 | 66 73 2d 64 75 6d 62 2d |fconst e|fs-dumb-|
|000005d0| 68 6f 73 74 2d 74 79 70 | 65 73 20 27 28 64 75 6d |host-typ|es '(dum|
|000005e0| 62 2d 75 6e 69 78 20 73 | 75 70 65 72 2d 64 75 6d |b-unix s|uper-dum|
|000005f0| 62 2d 75 6e 69 78 20 76 | 6d 73 20 63 6d 73 20 6d |b-unix v|ms cms m|
|00000600| 74 73 20 74 69 2d 74 77 | 65 6e 65 78 20 74 69 2d |ts ti-tw|enex ti-|
|00000610| 65 78 70 6c 6f 72 65 72 | 20 64 6f 73 20 6d 76 73 |explorer| dos mvs|
|00000620| 20 74 6f 70 73 2d 32 30 | 20 6d 70 65 20 6b 61 39 | tops-20| mpe ka9|
|00000630| 71 20 64 6f 73 2d 64 69 | 73 74 69 6e 63 74 20 6f |q dos-di|stinct o|
|00000640| 73 32 20 76 6f 73 20 68 | 65 6c 6c 20 67 75 61 72 |s2 vos h|ell guar|
|00000650| 64 69 61 6e 20 6e 65 74 | 77 61 72 65 20 63 6d 73 |dian net|ware cms|
|00000660| 2d 6b 6e 65 74 20 6e 6f | 73 2d 76 65 20 63 6f 6b |-knet no|s-ve cok|
|00000670| 65 20 64 75 6d 62 2d 61 | 70 6f 6c 6c 6f 2d 75 6e |e dumb-a|pollo-un|
|00000680| 69 78 29 20 28 23 24 20 | 2e 20 31 34 30 32 29 29 |ix) (#$ |. 1402))|
|00000690| 0a 23 40 32 36 20 4c 69 | 73 74 20 6f 66 20 75 6e |.#@26 Li|st of un|
|000006a0| 69 78 20 68 6f 73 74 20 | 74 79 70 65 73 2e 1f 0a |ix host |types...|
|000006b0| 28 64 65 66 63 6f 6e 73 | 74 20 65 66 73 2d 75 6e |(defcons|t efs-un|
|000006c0| 69 78 2d 68 6f 73 74 2d | 74 79 70 65 73 20 27 28 |ix-host-|types '(|
|000006d0| 75 6e 69 78 20 73 79 73 | 56 2d 75 6e 69 78 20 62 |unix sys|V-unix b|
|000006e0| 73 64 2d 75 6e 69 78 20 | 6e 65 78 74 2d 75 6e 69 |sd-unix |next-uni|
|000006f0| 78 20 61 70 6f 6c 6c 6f | 2d 75 6e 69 78 20 64 75 |x apollo|-unix du|
|00000700| 6d 62 2d 75 6e 69 78 20 | 64 75 6d 62 2d 61 70 6f |mb-unix |dumb-apo|
|00000710| 6c 6c 6f 2d 75 6e 69 78 | 20 73 75 70 65 72 2d 64 |llo-unix| super-d|
|00000720| 75 6d 62 2d 75 6e 69 78 | 29 20 28 23 24 20 2e 20 |umb-unix|) (#$ . |
|00000730| 31 36 38 36 29 29 0a 23 | 40 31 34 32 20 4c 69 73 |1686)).#|@142 Lis|
|00000740| 74 20 6f 66 20 68 6f 73 | 74 2d 74 79 70 65 73 20 |t of hos|t-types |
|00000750| 77 68 69 63 68 20 61 73 | 73 6f 63 69 61 74 65 64 |which as|sociated|
|00000760| 20 61 20 76 65 72 73 69 | 6f 6e 20 6e 75 6d 62 65 | a versi|on numbe|
|00000770| 72 20 74 6f 20 61 6c 6c | 20 66 69 6c 65 73 2e 0a |r to all| files..|
|00000780| 54 68 69 73 20 69 73 20 | 6e 6f 74 20 74 68 65 20 |This is |not the |
|00000790| 73 61 6d 65 20 61 73 20 | 61 73 73 6f 63 69 61 74 |same as |associat|
|000007a0| 69 6e 67 20 76 65 72 73 | 69 6f 6e 20 6e 75 6d 62 |ing vers|ion numb|
|000007b0| 65 72 73 20 74 6f 20 6f | 6e 6c 79 20 62 61 63 6b |ers to o|nly back|
|000007c0| 75 70 20 66 69 6c 65 73 | 2e 1f 0a 28 64 65 66 63 |up files|...(defc|
|000007d0| 6f 6e 73 74 20 65 66 73 | 2d 76 65 72 73 69 6f 6e |onst efs|-version|
|000007e0| 2d 68 6f 73 74 2d 74 79 | 70 65 73 20 27 28 76 6d |-host-ty|pes '(vm|
|000007f0| 73 20 74 6f 70 73 2d 32 | 30 20 74 69 2d 74 77 65 |s tops-2|0 ti-twe|
|00000800| 6e 65 78 20 74 69 2d 65 | 78 70 6c 6f 72 65 72 29 |nex ti-e|xplorer)|
|00000810| 20 28 23 24 20 2e 20 31 | 38 35 33 29 29 0a 23 40 | (#$ . 1|853)).#@|
|00000820| 32 34 38 20 4c 69 73 74 | 20 6f 66 20 68 6f 73 74 |248 List| of host|
|00000830| 20 74 79 70 65 73 20 77 | 68 69 63 68 20 61 6c 6c | types w|hich all|
|00000840| 6f 77 20 61 74 20 6d 6f | 73 74 20 6f 6e 65 20 65 |ow at mo|st one e|
|00000850| 78 74 65 6e 73 69 6f 6e | 20 6f 6e 20 61 20 66 69 |xtension| on a fi|
|00000860| 6c 65 20 6e 61 6d 65 2e | 0a 45 78 74 65 6e 73 69 |le name.|.Extensi|
|00000870| 6f 6e 73 20 61 72 65 20 | 64 65 6c 69 6d 69 6e 61 |ons are |delimina|
|00000880| 74 65 64 20 62 79 20 22 | 2e 22 2e 20 49 6e 20 61 |ted by "|.". In a|
|00000890| 64 64 69 74 69 6f 6e 2c | 20 74 68 65 73 65 20 68 |ddition,| these h|
|000008a0| 6f 73 74 2d 74 79 70 65 | 73 20 6d 75 73 74 0a 61 |ost-type|s must.a|
|000008b0| 6c 6c 6f 77 20 22 2d 22 | 20 69 6e 20 66 69 6c 65 |llow "-"| in file|
|000008c0| 20 6e 61 6d 65 73 2c 20 | 62 65 63 61 75 73 65 20 | names, |because |
|000008d0| 69 74 20 77 69 6c 6c 20 | 62 65 20 75 73 65 64 20 |it will |be used |
|000008e0| 74 6f 20 61 64 64 20 61 | 64 64 69 74 69 6f 6e 61 |to add a|dditiona|
|000008f0| 6c 20 65 78 74 65 6e 73 | 69 6f 6e 73 0a 74 6f 20 |l extens|ions.to |
|00000900| 69 6e 64 69 63 61 74 65 | 20 63 6f 6d 70 72 65 73 |indicate| compres|
|00000910| 73 65 64 20 66 69 6c 65 | 73 2e 1f 0a 28 64 65 66 |sed file|s...(def|
|00000920| 63 6f 6e 73 74 20 65 66 | 73 2d 73 69 6e 67 6c 65 |const ef|s-single|
|00000930| 2d 65 78 74 65 6e 73 69 | 6f 6e 2d 68 6f 73 74 2d |-extensi|on-host-|
|00000940| 74 79 70 65 73 20 27 28 | 76 6d 73 20 74 6f 70 73 |types '(|vms tops|
|00000950| 2d 32 30 20 74 69 2d 74 | 77 65 6e 65 78 20 74 69 |-20 ti-t|wenex ti|
|00000960| 2d 65 78 70 6c 6f 72 65 | 72 20 63 6d 73 20 6d 76 |-explore|r cms mv|
|00000970| 73 20 64 6f 73 20 6b 61 | 39 71 20 64 6f 73 2d 64 |s dos ka|9q dos-d|
|00000980| 69 73 74 69 6e 63 74 20 | 68 65 6c 6c 20 6e 65 74 |istinct |hell net|
|00000990| 77 61 72 65 20 6d 73 2d | 75 6e 69 78 20 70 6c 61 |ware ms-|unix pla|
|000009a0| 6e 39 20 63 6d 73 2d 6b | 6e 65 74 20 6e 6f 73 2d |n9 cms-k|net nos-|
|000009b0| 76 65 29 20 28 23 24 20 | 2e 20 32 30 38 34 29 29 |ve) (#$ |. 2084))|
|000009c0| 0a 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c0 c1 5c |.(byte-c|ode "..\|
|000009d0| 6e 5c 22 13 c3 0c 42 14 | c0 87 22 20 5b 61 70 70 |n\"...B.|.." [app|
|000009e0| 65 6e 64 20 28 63 6f 6b | 65 20 75 6e 6b 6e 6f 77 |end (cok|e unknow|
|000009f0| 6e 29 20 65 66 73 2d 75 | 6e 69 78 2d 68 6f 73 74 |n) efs-u|nix-host|
|00000a00| 2d 74 79 70 65 73 20 65 | 66 73 2d 69 64 6c 65 2d |-types e|fs-idle-|
|00000a10| 68 6f 73 74 2d 74 79 70 | 65 73 20 63 75 72 72 65 |host-typ|es curre|
|00000a20| 6e 74 2d 6c 6f 61 64 2d | 6c 69 73 74 5d 20 33 29 |nt-load-|list] 3)|
|00000a30| 0a 23 40 33 33 20 4c 69 | 73 74 20 6f 66 20 73 75 |.#@33 Li|st of su|
|00000a40| 70 70 6f 72 74 65 64 20 | 6c 69 73 74 69 6e 67 20 |pported |listing |
|00000a50| 74 79 70 65 73 1f 0a 28 | 64 65 66 63 6f 6e 73 74 |types..(|defconst|
|00000a60| 20 65 66 73 2d 6c 69 73 | 74 69 6e 67 2d 74 79 70 | efs-lis|ting-typ|
|00000a70| 65 73 20 27 28 75 6e 69 | 78 3a 64 6c 20 75 6e 69 |es '(uni|x:dl uni|
|00000a80| 78 3a 75 6e 6b 6e 6f 77 | 6e 20 64 6f 73 3a 6e 6f |x:unknow|n dos:no|
|00000a90| 76 65 6c 6c 20 64 6f 73 | 3a 66 74 70 20 64 6f 73 |vell dos|:ftp dos|
|00000aa0| 3a 6e 63 73 61 20 64 6f | 73 3a 6d 69 63 72 6f 73 |:ncsa do|s:micros|
|00000ab0| 6f 66 74 20 64 6f 73 3a | 73 74 63 70 20 64 6f 73 |oft dos:|stcp dos|
|00000ac0| 3a 77 69 6e 73 6f 63 6b | 20 6d 76 73 3a 6e 69 68 |:winsock| mvs:nih|
|00000ad0| 20 6d 76 73 3a 74 63 70 | 20 6d 76 73 3a 74 63 70 | mvs:tcp| mvs:tcp|
|00000ae0| 20 76 6d 73 3a 66 75 6c | 6c 29 20 28 23 24 20 2e | vms:ful|l) (#$ .|
|00000af0| 20 32 36 31 34 29 29 0a | 28 62 79 74 65 2d 63 6f | 2614)).|(byte-co|
|00000b00| 64 65 20 22 c0 11 c1 5c | 6e 42 12 c3 14 c4 5c 6e |de "...\|nB....\n|
|00000b10| 42 12 c1 87 22 20 5b 28 | 76 6d 73 3a 66 75 6c 6c |B..." [(|vms:full|
|00000b20| 29 20 65 66 73 2d 6e 6c | 69 73 74 2d 6c 69 73 74 |) efs-nl|ist-list|
|00000b30| 69 6e 67 2d 74 79 70 65 | 73 20 63 75 72 72 65 6e |ing-type|s curren|
|00000b40| 74 2d 6c 6f 61 64 2d 6c | 69 73 74 20 28 72 65 6d |t-load-l|ist (rem|
|00000b50| 73 68 20 69 6e 74 65 72 | 61 63 74 69 76 65 29 20 |sh inter|active) |
|00000b60| 65 66 73 2d 6f 70 61 71 | 75 65 2d 67 61 74 65 77 |efs-opaq|ue-gatew|
|00000b70| 61 79 73 5d 20 32 29 0a | 23 40 34 32 31 20 52 65 |ays] 2).|#@421 Re|
|00000b80| 67 65 78 70 20 74 6f 20 | 6d 61 74 63 68 20 6e 61 |gexp to |match na|
|00000b90| 6d 65 73 20 6f 66 20 6c | 6f 63 61 6c 20 68 6f 73 |mes of l|ocal hos|
|00000ba0| 74 73 2e 0a 54 68 65 73 | 65 20 61 72 65 20 68 6f |ts..Thes|e are ho|
|00000bb0| 73 74 73 20 74 6f 20 77 | 68 69 63 68 20 69 74 20 |sts to w|hich it |
|00000bc0| 69 73 20 70 6f 73 73 69 | 62 6c 65 20 74 6f 20 6f |is possi|ble to o|
|00000bd0| 62 74 61 69 6e 20 61 20 | 64 69 72 65 63 74 20 69 |btain a |direct i|
|00000be0| 6e 74 65 72 6e 65 74 0a | 63 6f 6e 6e 65 63 74 69 |nternet.|connecti|
|00000bf0| 6f 6e 2e 20 20 45 76 65 | 6e 20 69 66 20 74 68 65 |on. Eve|n if the|
|00000c00| 20 68 6f 73 74 20 69 73 | 20 61 63 63 65 73 73 69 | host is| accessi|
|00000c10| 62 6c 65 20 62 79 20 61 | 20 76 65 72 79 20 74 72 |ble by a| very tr|
|00000c20| 61 6e 73 70 61 72 65 6e | 74 20 46 54 50 20 67 61 |ansparen|t FTP ga|
|00000c30| 74 65 77 61 79 2c 0a 69 | 74 20 64 6f 65 73 20 6e |teway,.i|t does n|
|00000c40| 6f 74 20 71 75 61 6c 69 | 66 79 20 61 73 20 61 20 |ot quali|fy as a |
|00000c50| 6c 6f 63 61 6c 20 68 6f | 73 74 2e 20 20 54 68 65 |local ho|st. The|
|00000c60| 20 74 65 73 74 20 74 6f | 20 64 65 74 65 72 6d 69 | test to| determi|
|00000c70| 6e 65 20 69 66 20 6d 61 | 63 68 69 6e 65 20 41 20 |ne if ma|chine A |
|00000c80| 69 73 0a 6c 6f 63 61 6c | 20 74 6f 20 79 6f 75 72 |is.local| to your|
|00000c90| 20 6d 61 63 68 69 6e 65 | 20 69 73 20 69 66 20 69 | machine| is if i|
|00000ca0| 74 20 69 73 20 70 6f 73 | 73 69 62 6c 65 20 74 6f |t is pos|sible to|
|00000cb0| 20 66 74 70 20 66 72 6f | 6d 20 41 20 5f 62 61 63 | ftp fro|m A _bac|
|00000cc0| 6b 5f 20 74 6f 20 79 6f | 75 72 0a 6c 6f 63 61 6c |k_ to yo|ur.local|
|00000cd0| 20 6d 61 63 68 69 6e 65 | 2e 20 20 41 6c 73 6f 2c | machine|. Also,|
|00000ce0| 20 6f 70 65 6e 2d 6e 65 | 74 77 6f 72 6b 2d 73 74 | open-ne|twork-st|
|00000cf0| 72 65 61 6d 20 6d 75 73 | 74 20 62 65 20 61 62 6c |ream mus|t be abl|
|00000d00| 65 20 74 6f 20 72 65 61 | 63 68 20 74 68 65 20 68 |e to rea|ch the h|
|00000d10| 6f 73 74 20 0a 69 6e 20 | 71 75 65 73 74 69 6f 6e |ost .in |question|
|00000d20| 2e 1f 0a 28 64 65 66 76 | 61 72 20 65 66 73 2d 6c |...(defv|ar efs-l|
|00000d30| 6f 63 61 6c 2d 68 6f 73 | 74 2d 72 65 67 65 78 70 |ocal-hos|t-regexp|
|00000d40| 20 22 2e 2a 22 20 28 23 | 24 20 2e 20 32 39 34 32 | ".*" (#|$ . 2942|
|00000d50| 29 29 0a 23 40 33 33 37 | 20 52 65 67 65 78 70 20 |)).#@337| Regexp |
|00000d60| 74 6f 20 6d 61 74 63 68 | 20 74 68 65 20 6e 61 6d |to match| the nam|
|00000d70| 65 73 20 6f 66 20 68 6f | 73 74 73 20 72 65 61 63 |es of ho|sts reac|
|00000d80| 68 61 62 6c 65 20 62 79 | 20 61 20 64 69 72 65 63 |hable by| a direc|
|00000d90| 74 20 66 74 70 20 63 6f | 6e 6e 65 63 74 69 6f 6e |t ftp co|nnection|
|00000da0| 2e 0a 54 68 69 73 20 72 | 65 67 65 78 70 20 73 68 |..This r|egexp sh|
|00000db0| 6f 75 6c 64 20 6d 61 74 | 63 68 20 74 68 65 20 6e |ould mat|ch the n|
|00000dc0| 61 6d 65 73 20 6f 66 20 | 68 6f 73 74 73 20 77 68 |ames of |hosts wh|
|00000dd0| 69 63 68 20 63 61 6e 20 | 62 65 20 72 65 61 63 68 |ich can |be reach|
|00000de0| 65 64 20 75 73 69 6e 67 | 20 66 74 70 2c 0a 77 69 |ed using| ftp,.wi|
|00000df0| 74 68 6f 75 74 20 72 65 | 71 75 69 72 69 6e 67 20 |thout re|quiring |
|00000e00| 61 6e 79 20 65 78 70 6c | 69 63 69 74 20 63 6f 6e |any expl|icit con|
|00000e10| 6e 65 63 74 69 6f 6e 20 | 74 6f 20 61 20 67 61 74 |nection |to a gat|
|00000e20| 65 77 61 79 2e 20 49 66 | 20 79 6f 75 20 68 61 76 |eway. If| you hav|
|00000e30| 65 20 61 20 73 6d 61 72 | 74 0a 66 74 70 20 63 6c |e a smar|t.ftp cl|
|00000e40| 69 65 6e 74 20 77 68 69 | 63 68 20 69 73 20 61 62 |ient whi|ch is ab|
|00000e50| 6c 65 20 74 6f 20 74 72 | 61 6e 73 70 61 72 65 6e |le to tr|ansparen|
|00000e60| 74 6c 79 20 67 6f 20 74 | 68 72 6f 75 67 68 20 61 |tly go t|hrough a|
|00000e70| 20 67 61 74 65 77 61 79 | 2c 20 74 68 69 73 20 77 | gateway|, this w|
|00000e80| 69 6c 6c 0a 64 69 66 66 | 65 72 20 66 72 6f 6d 20 |ill.diff|er from |
|00000e90| 60 65 66 73 2d 6c 6f 63 | 61 6c 2d 68 6f 73 74 2d |`efs-loc|al-host-|
|00000ea0| 72 65 67 65 78 70 27 2e | 1f 0a 28 64 65 66 76 61 |regexp'.|..(defva|
|00000eb0| 72 20 65 66 73 2d 66 74 | 70 2d 6c 6f 63 61 6c 2d |r efs-ft|p-local-|
|00000ec0| 68 6f 73 74 2d 72 65 67 | 65 78 70 20 22 2e 2a 22 |host-reg|exp ".*"|
|00000ed0| 20 28 23 24 20 2e 20 33 | 34 31 37 29 29 0a 23 40 | (#$ . 3|417)).#@|
|00000ee0| 32 30 36 20 49 66 20 6e | 6f 6e 2d 6e 69 6c 2c 20 |206 If n|on-nil, |
|00000ef0| 74 68 69 73 20 6d 75 73 | 74 20 62 65 20 74 68 65 |this mus|t be the|
|00000f00| 20 6e 61 6d 65 20 6f 66 | 20 79 6f 75 72 20 66 74 | name of| your ft|
|00000f10| 70 20 67 61 74 65 77 61 | 79 20 6d 61 63 68 69 6e |p gatewa|y machin|
|00000f20| 65 2e 0a 49 66 20 79 6f | 75 72 20 6e 65 74 20 77 |e..If yo|ur net w|
|00000f30| 6f 72 6c 64 20 69 73 20 | 64 69 76 69 64 65 64 20 |orld is |divided |
|00000f40| 69 6e 74 6f 20 74 77 6f | 20 64 6f 6d 61 69 6e 73 |into two| domains|
|00000f50| 20 61 63 63 6f 72 64 69 | 6e 67 20 74 6f 0a 60 65 | accordi|ng to.`e|
|00000f60| 66 73 2d 6c 6f 63 61 6c | 2d 66 74 70 2d 68 6f 73 |fs-local|-ftp-hos|
|00000f70| 74 2d 72 65 67 65 78 70 | 27 2c 20 73 65 74 20 74 |t-regexp|', set t|
|00000f80| 68 69 73 20 76 61 72 69 | 61 62 6c 65 20 74 6f 20 |his vari|able to |
|00000f90| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 74 68 65 0a |the name| of the.|
|00000fa0| 67 61 74 65 77 61 79 20 | 6d 61 63 68 69 6e 65 2e |gateway |machine.|
|00000fb0| 1f 0a 28 64 65 66 76 61 | 72 20 65 66 73 2d 67 61 |..(defva|r efs-ga|
|00000fc0| 74 65 77 61 79 2d 68 6f | 73 74 20 6e 69 6c 20 28 |teway-ho|st nil (|
|00000fd0| 23 24 20 2e 20 33 38 31 | 32 29 29 0a 23 40 34 31 |#$ . 381|2)).#@41|
|00000fe0| 37 32 20 53 70 65 63 69 | 66 69 65 73 20 77 68 69 |72 Speci|fies whi|
|00000ff0| 63 68 20 74 79 70 65 20 | 6f 66 20 67 61 74 65 77 |ch type |of gatew|
|00001000| 61 79 20 79 6f 75 20 77 | 69 73 68 20 65 66 73 20 |ay you w|ish efs |
|00001010| 74 6f 20 75 73 65 2e 0a | 54 68 69 73 20 73 68 6f |to use..|This sho|
|00001020| 75 6c 64 20 62 65 20 61 | 20 6c 69 73 74 2c 20 74 |uld be a| list, t|
|00001030| 68 65 20 66 69 72 73 74 | 20 65 6c 65 6d 65 6e 74 |he first| element|
|00001040| 20 6f 66 20 77 68 69 63 | 68 20 69 73 20 61 20 73 | of whic|h is a s|
|00001050| 79 6d 62 6f 6c 20 64 65 | 6e 6f 74 69 6e 67 20 74 |ymbol de|noting t|
|00001060| 68 65 0a 67 61 74 65 77 | 61 79 20 74 79 70 65 2c |he.gatew|ay type,|
|00001070| 20 61 6e 64 20 66 6f 6c | 6c 6f 77 69 6e 67 20 65 | and fol|lowing e|
|00001080| 6c 65 6d 65 6e 74 73 20 | 67 69 76 65 20 64 61 74 |lements |give dat|
|00001090| 61 20 6f 6e 20 68 6f 77 | 20 74 6f 20 75 73 65 20 |a on how| to use |
|000010a0| 74 68 65 20 67 61 74 65 | 77 61 79 2e 0a 0a 54 68 |the gate|way...Th|
|000010b0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 70 6f 73 73 |e follow|ing poss|
|000010c0| 69 62 69 6c 69 74 69 65 | 73 20 61 72 65 20 73 75 |ibilitie|s are su|
|000010d0| 70 70 6f 72 74 65 64 3a | 0a 0a 20 20 27 28 6c 6f |pported:|.. '(lo|
|000010e0| 63 61 6c 20 46 54 50 2d | 50 52 4f 47 52 41 4d 20 |cal FTP-|PROGRAM |
|000010f0| 46 54 50 2d 50 52 4f 47 | 52 41 4d 2d 41 52 47 53 |FTP-PROG|RAM-ARGS|
|00001100| 29 0a 20 20 54 68 69 73 | 20 6d 65 61 6e 73 20 74 |). This| means t|
|00001110| 68 61 74 20 79 6f 75 72 | 20 6c 6f 63 61 6c 20 68 |hat your| local h|
|00001120| 6f 73 74 20 69 73 20 69 | 74 73 65 6c 66 20 74 68 |ost is i|tself th|
|00001130| 65 20 67 61 74 65 77 61 | 79 2e 20 20 48 6f 77 65 |e gatewa|y. Howe|
|00001140| 76 65 72 2c 0a 20 20 79 | 6f 75 20 6e 65 65 64 20 |ver,. y|ou need |
|00001150| 74 6f 20 72 75 6e 20 61 | 20 73 70 65 63 69 61 6c |to run a| special|
|00001160| 20 46 54 50 20 63 6c 69 | 65 6e 74 20 74 6f 20 61 | FTP cli|ent to a|
|00001170| 63 63 65 73 73 20 6f 75 | 74 73 69 64 65 20 68 6f |ccess ou|tside ho|
|00001180| 73 74 73 2e 0a 20 20 46 | 54 50 2d 50 52 4f 47 52 |sts.. F|TP-PROGR|
|00001190| 41 4d 20 73 68 6f 75 6c | 64 20 62 65 20 74 68 65 |AM shoul|d be the|
|000011a0| 20 6e 61 6d 65 20 6f 66 | 20 74 68 69 73 20 46 54 | name of| this FT|
|000011b0| 50 20 63 6c 69 65 6e 74 | 2c 20 20 61 6e 64 20 46 |P client|, and F|
|000011c0| 54 50 2d 50 52 4f 47 52 | 41 4d 2d 41 52 47 53 0a |TP-PROGR|AM-ARGS.|
|000011d0| 20 20 69 73 20 61 20 6c | 69 73 74 20 6f 66 20 61 | is a l|ist of a|
|000011e0| 72 67 75 6d 65 6e 74 73 | 20 74 6f 20 70 61 73 73 |rguments| to pass|
|000011f0| 20 74 6f 20 69 74 20 28 | 70 72 6f 62 61 62 6c 79 | to it (|probably|
|00001200| 20 73 65 74 20 74 68 69 | 73 20 74 6f 20 74 68 65 | set thi|s to the|
|00001210| 20 76 61 6c 75 65 20 6f | 66 0a 20 20 65 66 73 2d | value o|f. efs-|
|00001220| 66 74 70 2d 70 72 6f 67 | 72 61 6d 2d 61 72 67 73 |ftp-prog|ram-args|
|00001230| 20 3c 56 3e 29 2e 20 20 | 4e 6f 74 65 20 74 68 61 | <V>). |Note tha|
|00001240| 74 20 69 66 20 79 6f 75 | 72 20 67 61 74 65 77 61 |t if you|r gatewa|
|00001250| 79 20 69 73 20 6f 66 20 | 74 68 69 73 20 74 79 70 |y is of |this typ|
|00001260| 65 2c 0a 20 20 74 68 65 | 6e 20 79 6f 75 20 77 6f |e,. the|n you wo|
|00001270| 75 6c 64 20 73 65 74 20 | 65 66 73 2d 67 61 74 65 |uld set |efs-gate|
|00001280| 77 61 79 2d 68 6f 73 74 | 20 74 6f 20 6e 69 6c 2e |way-host| to nil.|
|00001290| 0a 0a 20 20 27 28 70 72 | 6f 78 79 20 46 54 50 2d |.. '(pr|oxy FTP-|
|000012a0| 50 52 4f 47 52 41 4d 20 | 46 54 50 2d 50 52 4f 47 |PROGRAM |FTP-PROG|
|000012b0| 52 41 4d 2d 41 52 47 53 | 29 0a 20 20 54 68 69 73 |RAM-ARGS|). This|
|000012c0| 20 69 6e 64 69 63 61 74 | 65 73 20 74 68 61 74 20 | indicat|es that |
|000012d0| 79 6f 75 72 20 67 61 74 | 65 77 61 79 20 77 6f 72 |your gat|eway wor|
|000012e0| 6b 73 20 62 79 20 66 69 | 72 73 74 20 46 54 50 27 |ks by fi|rst FTP'|
|000012f0| 69 6e 67 20 74 6f 20 69 | 74 2c 20 61 6e 64 0a 20 |ing to i|t, and. |
|00001300| 20 74 68 65 6e 20 67 69 | 76 69 6e 67 20 61 20 20 | then gi|ving a |
|00001310| 55 53 45 52 20 63 6f 6d | 6d 61 6e 64 20 6f 66 20 |USER com|mand of |
|00001320| 74 68 65 20 66 6f 72 6d | 20 22 55 53 45 52 20 3c |the form| "USER <|
|00001330| 75 73 65 72 6e 61 6d 65 | 3e 40 3c 68 6f 73 74 3e |username|>@<host>|
|00001340| 22 2e 0a 20 20 46 54 50 | 2d 50 52 4f 47 52 41 4d |".. FTP|-PROGRAM|
|00001350| 20 69 73 20 74 68 65 20 | 46 54 50 20 70 72 6f 67 | is the |FTP prog|
|00001360| 72 61 6d 20 74 6f 20 75 | 73 65 20 74 6f 20 63 6f |ram to u|se to co|
|00001370| 6e 6e 65 63 74 20 74 6f | 20 74 68 65 20 67 61 74 |nnect to| the gat|
|00001380| 65 77 61 79 3b 20 74 68 | 69 73 0a 20 20 69 73 20 |eway; th|is. is |
|00001390| 6d 6f 73 74 20 6c 69 6b | 65 6c 79 20 22 66 74 70 |most lik|ely "ftp|
|000013a0| 22 2e 20 20 46 54 50 2d | 50 52 4f 47 52 41 4d 2d |". FTP-|PROGRAM-|
|000013b0| 41 52 47 53 20 69 73 20 | 61 20 6c 69 73 74 20 6f |ARGS is |a list o|
|000013c0| 66 20 61 72 67 75 6d 65 | 6e 74 73 20 74 6f 20 0a |f argume|nts to .|
|000013d0| 20 20 70 61 73 73 20 74 | 6f 20 69 74 2e 20 20 59 | pass t|o it. Y|
|000013e0| 6f 75 20 6c 69 6b 65 6c | 79 20 77 61 6e 74 20 74 |ou likel|y want t|
|000013f0| 68 69 73 20 74 6f 20 62 | 65 20 73 65 74 20 74 6f |his to b|e set to|
|00001400| 20 74 68 65 20 76 61 6c | 75 65 20 6f 66 0a 20 20 | the val|ue of. |
|00001410| 65 66 73 2d 66 74 70 2d | 70 72 6f 67 72 61 6d 2d |efs-ftp-|program-|
|00001420| 61 72 67 73 20 3c 56 3e | 2e 20 20 49 66 20 74 68 |args <V>|. If th|
|00001430| 65 20 63 6f 6e 6e 65 63 | 74 69 6f 6e 20 74 6f 20 |e connec|tion to |
|00001440| 74 68 65 20 67 61 74 65 | 77 61 79 20 46 54 50 20 |the gate|way FTP |
|00001450| 73 65 72 76 65 72 0a 20 | 20 69 73 20 74 6f 20 62 |server. | is to b|
|00001460| 65 20 6f 6e 20 61 20 70 | 6f 72 74 20 64 69 66 66 |e on a p|ort diff|
|00001470| 65 72 65 6e 74 20 66 72 | 6f 6d 20 32 31 2c 20 73 |erent fr|om 21, s|
|00001480| 65 74 20 65 66 73 2d 67 | 61 74 65 77 61 79 2d 68 |et efs-g|ateway-h|
|00001490| 6f 73 74 20 74 6f 20 0a | 20 20 22 3c 68 6f 73 74 |ost to .| "<host|
|000014a0| 3e 23 3c 70 6f 72 74 3e | 22 2e 0a 0a 20 20 27 28 |>#<port>|"... '(|
|000014b0| 72 61 70 74 6f 72 20 46 | 54 50 2d 50 52 4f 47 52 |raptor F|TP-PROGR|
|000014c0| 41 4d 20 46 54 50 2d 50 | 52 4f 47 52 41 4d 2d 41 |AM FTP-P|ROGRAM-A|
|000014d0| 52 47 53 20 55 53 45 52 | 29 0a 20 20 54 68 69 73 |RGS USER|). This|
|000014e0| 20 69 73 20 66 6f 72 20 | 74 68 65 20 67 61 74 65 | is for |the gate|
|000014f0| 77 61 79 20 63 61 6c 6c | 65 64 20 72 61 70 74 6f |way call|ed rapto|
|00001500| 72 20 62 79 20 45 61 67 | 6c 65 2e 20 20 41 66 74 |r by Eag|le. Aft|
|00001510| 65 72 20 63 6f 6e 6e 65 | 63 74 69 6e 67 20 74 6f |er conne|cting to|
|00001520| 20 74 68 65 0a 20 20 74 | 68 65 20 67 61 74 65 77 | the. t|he gatew|
|00001530| 61 79 2c 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 |ay, the |command |
|00001540| 22 75 73 65 72 20 3c 75 | 73 65 72 3e 40 68 6f 73 |"user <u|ser>@hos|
|00001550| 74 20 55 53 45 52 22 20 | 69 73 20 69 73 73 75 65 |t USER" |is issue|
|00001560| 64 20 74 6f 20 6c 6f 67 | 69 6e 0a 20 20 61 73 20 |d to log|in. as |
|00001570| 3c 75 73 65 72 3e 20 6f | 6e 20 3c 68 6f 73 74 3e |<user> o|n <host>|
|00001580| 2c 20 77 68 65 72 65 20 | 55 53 45 52 20 69 73 20 |, where |USER is |
|00001590| 61 6e 20 61 75 74 68 65 | 6e 74 69 63 61 74 69 6f |an authe|nticatio|
|000015a0| 6e 20 75 73 65 72 6e 61 | 6d 65 20 66 6f 72 20 74 |n userna|me for t|
|000015b0| 68 65 20 0a 20 20 67 61 | 74 65 77 61 79 2e 20 20 |he . ga|teway. |
|000015c0| 41 66 74 65 72 20 69 73 | 73 75 69 6e 67 20 74 68 |After is|suing th|
|000015d0| 65 20 70 61 73 73 77 6f | 72 64 20 66 6f 72 20 74 |e passwo|rd for t|
|000015e0| 68 65 20 72 65 6d 6f 74 | 65 20 68 6f 73 74 2c 20 |he remot|e host, |
|000015f0| 65 66 73 20 77 69 6c 6c | 0a 20 20 73 65 6e 64 20 |efs will|. send |
|00001600| 74 68 65 20 70 61 73 73 | 77 6f 72 64 20 66 6f 72 |the pass|word for|
|00001610| 20 55 53 45 52 20 6f 6e | 20 65 66 73 2d 67 61 74 | USER on| efs-gat|
|00001620| 65 77 61 79 2d 68 6f 73 | 74 20 3c 56 3e 20 61 73 |eway-hos|t <V> as|
|00001630| 20 61 6e 20 61 63 63 6f | 75 6e 74 20 63 6f 6d 6d | an acco|unt comm|
|00001640| 61 6e 64 2e 0a 0a 20 27 | 28 69 6e 74 65 72 6c 6f |and... '|(interlo|
|00001650| 63 6b 20 46 54 50 2d 50 | 52 4f 47 52 41 4d 20 46 |ck FTP-P|ROGRAM F|
|00001660| 54 50 2d 50 52 4f 47 52 | 41 4d 2d 41 52 47 53 29 |TP-PROGR|AM-ARGS)|
|00001670| 0a 20 20 54 68 69 73 20 | 69 73 20 66 6f 72 20 74 |. This |is for t|
|00001680| 68 65 20 69 6e 74 65 72 | 6c 6f 63 6b 20 67 61 74 |he inter|lock gat|
|00001690| 65 77 61 79 2e 20 20 54 | 68 65 20 65 78 61 63 74 |eway. T|he exact|
|000016a0| 20 6c 6f 67 69 6e 20 73 | 65 71 75 65 6e 63 65 20 | login s|equence |
|000016b0| 69 73 20 74 6f 0a 20 20 | 63 6f 6e 6e 65 63 74 20 |is to. |connect |
|000016c0| 74 6f 20 74 68 65 20 67 | 61 74 65 77 61 79 20 73 |to the g|ateway s|
|000016d0| 70 65 63 69 66 69 65 64 | 20 62 79 20 65 66 73 2d |pecified| by efs-|
|000016e0| 67 61 74 65 77 61 79 2d | 68 6f 73 74 20 3c 56 3e |gateway-|host <V>|
|000016f0| 2c 20 73 65 6e 64 20 74 | 68 65 0a 20 20 67 61 74 |, send t|he. gat|
|00001700| 65 77 61 79 20 70 61 73 | 73 77 6f 72 64 20 77 69 |eway pas|sword wi|
|00001710| 74 68 20 61 20 50 41 53 | 53 20 63 6f 6d 6d 61 6e |th a PAS|S comman|
|00001720| 64 2c 20 73 65 6e 64 20 | 74 68 65 20 63 6f 6d 6d |d, send |the comm|
|00001730| 61 6e 64 0a 20 20 22 75 | 73 65 72 20 3c 75 73 65 |and. "u|ser <use|
|00001740| 72 3e 40 3c 68 6f 73 74 | 3e 22 20 74 6f 20 63 6f |r>@<host|>" to co|
|00001750| 6e 6e 65 63 74 20 74 6f | 20 72 65 6d 6f 74 65 20 |nnect to| remote |
|00001760| 68 6f 73 74 20 3c 68 6f | 73 74 3e 20 61 73 20 75 |host <ho|st> as u|
|00001770| 73 65 72 20 3c 75 73 65 | 72 3e 2c 0a 20 20 61 6e |ser <use|r>,. an|
|00001780| 64 20 66 69 6e 61 6c 6c | 79 20 74 6f 20 73 65 6e |d finall|y to sen|
|00001790| 64 20 74 68 65 20 70 61 | 73 73 77 6f 72 64 20 66 |d the pa|ssword f|
|000017a0| 6f 72 20 3c 75 73 65 72 | 3e 20 6f 6e 20 3c 68 6f |or <user|> on <ho|
|000017b0| 73 74 3e 20 77 69 74 68 | 20 61 20 73 65 63 6f 6e |st> with| a secon|
|000017c0| 64 0a 20 20 50 41 53 53 | 20 63 6f 6d 6d 61 6e 64 |d. PASS| command|
|000017d0| 2e 0a 0a 20 20 27 28 6b | 65 72 62 65 72 6f 73 20 |... '(k|erberos |
|000017e0| 46 54 50 2d 50 52 4f 47 | 52 41 4d 20 46 54 50 2d |FTP-PROG|RAM FTP-|
|000017f0| 50 52 4f 47 52 41 4d 2d | 41 52 47 53 20 4b 49 4e |PROGRAM-|ARGS KIN|
|00001800| 49 54 2d 50 52 4f 47 52 | 41 4d 20 4b 49 4e 49 54 |IT-PROGR|AM KINIT|
|00001810| 2d 50 52 4f 47 52 41 4d | 2d 41 52 47 53 29 0a 20 |-PROGRAM|-ARGS). |
|00001820| 20 54 68 69 73 20 69 73 | 20 66 6f 72 20 74 68 65 | This is| for the|
|00001830| 20 6b 65 72 62 65 72 6f | 73 20 67 61 74 65 77 61 | kerbero|s gatewa|
|00001840| 79 20 77 68 65 72 65 20 | 79 6f 75 20 6e 65 65 64 |y where |you need|
|00001850| 20 74 6f 20 72 75 6e 20 | 61 20 70 72 6f 67 72 61 | to run |a progra|
|00001860| 6d 20 28 6b 69 6e 69 74 | 29 20 74 6f 0a 20 20 6f |m (kinit|) to. o|
|00001870| 62 74 61 69 6e 20 61 20 | 74 69 63 6b 65 74 20 66 |btain a |ticket f|
|00001880| 6f 72 20 67 61 74 65 77 | 61 79 20 61 75 74 68 72 |or gatew|ay authr|
|00001890| 6f 69 7a 61 74 69 6f 6e | 20 66 69 72 73 74 2e 20 |oization| first. |
|000018a0| 20 46 54 50 2d 50 52 4f | 47 52 41 4d 20 73 68 6f | FTP-PRO|GRAM sho|
|000018b0| 75 6c 64 20 62 65 0a 20 | 20 74 68 65 20 6e 61 6d |uld be. | the nam|
|000018c0| 65 20 6f 66 20 74 68 65 | 20 46 54 50 20 63 6c 69 |e of the| FTP cli|
|000018d0| 65 6e 74 20 74 68 61 74 | 20 79 6f 75 20 75 73 65 |ent that| you use|
|000018e0| 20 74 6f 20 63 6f 6e 6e | 65 63 74 20 74 6f 20 74 | to conn|ect to t|
|000018f0| 68 65 20 67 61 74 65 77 | 61 79 2e 20 20 54 68 69 |he gatew|ay. Thi|
|00001900| 73 0a 20 20 6d 61 79 20 | 6c 69 6b 65 6c 79 20 62 |s. may |likely b|
|00001910| 65 20 22 69 66 74 70 22 | 2e 20 20 46 54 50 2d 50 |e "iftp"|. FTP-P|
|00001920| 52 4f 47 52 41 4d 2d 41 | 52 47 53 20 61 72 65 20 |ROGRAM-A|RGS are |
|00001930| 74 68 65 20 61 72 67 75 | 6d 65 6e 74 73 20 74 68 |the argu|ments th|
|00001940| 61 74 20 79 6f 75 20 6e | 65 65 64 0a 20 20 74 6f |at you n|eed. to|
|00001950| 20 70 61 73 73 20 74 6f | 20 46 54 50 2d 50 52 4f | pass to| FTP-PRO|
|00001960| 47 52 41 4d 2e 20 20 54 | 68 69 73 20 69 73 20 70 |GRAM. T|his is p|
|00001970| 72 6f 62 61 62 6c 79 20 | 74 68 65 20 76 61 6c 75 |robably |the valu|
|00001980| 65 20 6f 66 0a 20 20 65 | 66 73 2d 66 74 70 2d 70 |e of. e|fs-ftp-p|
|00001990| 72 6f 67 72 61 6d 2d 61 | 72 67 73 20 3c 56 3e 2e |rogram-a|rgs <V>.|
|000019a0| 20 20 4b 49 4e 49 54 2d | 50 52 4f 47 52 41 4d 20 | KINIT-|PROGRAM |
|000019b0| 69 73 20 74 68 65 20 6e | 61 6d 65 20 6f 66 20 74 |is the n|ame of t|
|000019c0| 68 65 20 70 72 6f 67 72 | 61 6d 20 74 6f 0a 20 20 |he progr|am to. |
|000019d0| 72 75 6e 20 69 6e 20 6f | 72 64 65 72 20 74 6f 20 |run in o|rder to |
|000019e0| 6f 62 74 61 69 6e 20 61 | 20 74 69 63 6b 65 74 2e |obtain a| ticket.|
|000019f0| 20 20 54 68 69 73 20 69 | 73 20 70 72 6f 62 61 62 | This i|s probab|
|00001a00| 6c 79 20 22 6b 69 6e 69 | 74 22 2e 0a 20 20 4b 49 |ly "kini|t".. KI|
|00001a10| 4e 49 54 2d 50 52 4f 47 | 52 41 4d 2d 41 52 47 53 |NIT-PROG|RAM-ARGS|
|00001a20| 20 69 73 20 61 20 6c 69 | 73 74 20 6f 67 20 73 74 | is a li|st og st|
|00001a30| 72 69 6e 67 73 20 69 6e | 64 69 63 61 74 69 6e 67 |rings in|dicating|
|00001a40| 20 61 6e 79 20 61 72 67 | 75 6d 65 6e 74 73 20 74 | any arg|uments t|
|00001a50| 68 61 74 20 79 6f 75 0a | 20 20 6e 65 65 64 20 74 |hat you.| need t|
|00001a60| 6f 20 70 61 73 73 20 74 | 6f 20 4b 49 4e 49 54 2d |o pass t|o KINIT-|
|00001a70| 50 52 4f 47 52 41 4d 2e | 20 20 4d 6f 73 74 20 6c |PROGRAM.| Most l|
|00001a80| 69 6b 65 6c 79 20 74 68 | 69 73 20 69 73 20 6e 69 |ikely th|is is ni|
|00001a90| 6c 2e 0a 0a 20 20 27 28 | 72 65 6d 73 68 20 47 41 |l... '(|remsh GA|
|00001aa0| 54 45 57 41 59 2d 50 52 | 4f 47 52 41 4d 20 47 41 |TEWAY-PR|OGRAM GA|
|00001ab0| 54 45 57 41 59 2d 50 52 | 4f 47 52 41 4d 2d 41 52 |TEWAY-PR|OGRAM-AR|
|00001ac0| 47 53 20 46 54 50 2d 50 | 52 4f 47 52 41 4d 20 46 |GS FTP-P|ROGRAM F|
|00001ad0| 54 50 2d 50 52 4f 47 52 | 41 4d 2d 41 52 47 53 29 |TP-PROGR|AM-ARGS)|
|00001ae0| 0a 20 20 54 68 69 73 20 | 69 6e 64 69 63 61 74 65 |. This |indicate|
|00001af0| 73 20 74 68 61 74 20 79 | 6f 75 20 77 69 73 68 20 |s that y|ou wish |
|00001b00| 74 6f 20 72 75 6e 20 46 | 54 50 20 6f 6e 20 79 6f |to run F|TP on yo|
|00001b10| 75 72 20 67 61 74 65 77 | 61 79 20 75 73 69 6e 67 |ur gatew|ay using|
|00001b20| 20 61 20 72 65 6d 6f 74 | 65 20 73 68 65 6c 6c 2e | a remot|e shell.|
|00001b30| 0a 20 20 47 41 54 45 57 | 41 59 2d 50 52 4f 47 52 |. GATEW|AY-PROGR|
|00001b40| 41 4d 20 69 73 20 74 68 | 65 20 6e 61 6d 65 20 6f |AM is th|e name o|
|00001b50| 66 20 74 68 65 20 70 72 | 6f 67 72 61 6d 20 74 6f |f the pr|ogram to|
|00001b60| 20 75 73 65 20 74 6f 20 | 73 74 61 72 74 20 61 20 | use to |start a |
|00001b70| 72 65 6d 6f 74 65 20 73 | 68 65 6c 6c 2e 0a 20 20 |remote s|hell.. |
|00001b80| 49 74 20 69 73 20 61 73 | 73 75 6d 65 64 20 74 68 |It is as|sumed th|
|00001b90| 61 74 20 69 74 20 69 73 | 20 6e 6f 74 20 6e 65 63 |at it is| not nec|
|00001ba0| 65 73 73 61 72 79 20 74 | 6f 20 70 72 6f 76 69 64 |essary t|o provid|
|00001bb0| 65 20 61 20 70 61 73 73 | 77 6f 72 64 20 74 6f 20 |e a pass|word to |
|00001bc0| 73 74 61 72 74 0a 20 20 | 74 68 69 73 20 72 65 6d |start. |this rem|
|00001bd0| 6f 74 65 20 73 68 65 6c | 6c 2e 20 20 4c 69 6b 65 |ote shel|l. Like|
|00001be0| 6c 79 20 76 61 6c 75 65 | 73 20 61 72 65 20 22 72 |ly value|s are "r|
|00001bf0| 65 6d 73 68 22 20 6f 72 | 20 22 72 73 68 22 2e 0a |emsh" or| "rsh"..|
|00001c00| 20 20 47 41 54 45 57 41 | 59 2d 50 52 4f 47 52 41 | GATEWA|Y-PROGRA|
|00001c10| 4d 2d 41 52 47 53 20 69 | 73 20 61 20 6c 69 73 74 |M-ARGS i|s a list|
|00001c20| 20 6f 66 20 61 72 67 75 | 6d 65 6e 74 73 20 74 6f | of argu|ments to|
|00001c30| 20 70 61 73 73 20 74 6f | 20 47 41 54 45 57 41 59 | pass to| GATEWAY|
|00001c40| 2d 50 52 4f 47 52 41 4d | 2e 0a 20 20 46 54 50 2d |-PROGRAM|.. FTP-|
|00001c50| 50 52 4f 47 52 41 4d 20 | 69 73 20 74 68 65 20 6e |PROGRAM |is the n|
|00001c60| 61 6d 65 20 6f 66 20 74 | 68 65 20 46 54 50 20 70 |ame of t|he FTP p|
|00001c70| 72 6f 67 72 61 6d 20 6f | 6e 20 74 68 65 20 67 61 |rogram o|n the ga|
|00001c80| 74 65 77 61 79 2e 20 20 | 41 20 6c 69 6b 65 6c 79 |teway. |A likely|
|00001c90| 20 73 65 74 74 69 6e 67 | 0a 20 20 6f 66 20 74 68 | setting|. of th|
|00001ca0| 69 73 20 69 73 20 22 66 | 74 70 22 2e 20 20 46 54 |is is "f|tp". FT|
|00001cb0| 50 2d 50 52 4f 47 52 41 | 4d 2d 41 52 47 53 20 69 |P-PROGRA|M-ARGS i|
|00001cc0| 73 20 61 20 6c 69 73 74 | 20 6f 66 20 61 72 67 75 |s a list| of argu|
|00001cd0| 6d 65 6e 74 73 20 74 6f | 20 70 61 73 73 20 74 6f |ments to| pass to|
|00001ce0| 20 0a 20 20 46 54 50 2d | 50 52 4f 47 52 41 4d 2e | . FTP-|PROGRAM.|
|00001cf0| 20 20 4d 6f 73 74 20 6c | 69 6b 65 6c 79 20 74 68 | Most l|ikely th|
|00001d00| 65 73 65 20 73 68 6f 75 | 6c 64 20 62 65 20 73 65 |ese shou|ld be se|
|00001d10| 74 20 74 6f 20 74 68 65 | 20 76 61 6c 75 65 20 6f |t to the| value o|
|00001d20| 66 0a 20 20 65 66 73 2d | 66 74 70 2d 70 72 6f 67 |f. efs-|ftp-prog|
|00001d30| 72 61 6d 2d 61 72 67 73 | 20 3c 56 3e 2e 0a 0a 20 |ram-args| <V>... |
|00001d40| 20 27 28 69 6e 74 65 72 | 61 63 74 69 76 65 20 47 | '(inter|active G|
|00001d50| 41 54 45 57 41 59 2d 50 | 52 4f 47 52 41 4d 20 47 |ATEWAY-P|ROGRAM G|
|00001d60| 41 54 45 57 41 59 2d 50 | 52 4f 47 52 41 4d 2d 41 |ATEWAY-P|ROGRAM-A|
|00001d70| 52 47 53 20 46 54 50 2d | 50 52 4f 47 52 41 4d 20 |RGS FTP-|PROGRAM |
|00001d80| 0a 20 20 20 20 20 20 46 | 54 50 2d 50 52 4f 47 52 |. F|TP-PROGR|
|00001d90| 41 4d 2d 41 52 47 53 29 | 0a 20 20 54 68 69 73 20 |AM-ARGS)|. This |
|00001da0| 69 6e 64 69 63 61 74 65 | 73 20 74 68 61 74 20 79 |indicate|s that y|
|00001db0| 6f 75 20 6e 65 65 64 20 | 74 6f 20 73 74 61 72 74 |ou need |to start|
|00001dc0| 20 61 6e 20 69 6e 74 65 | 72 61 63 74 69 76 65 20 | an inte|ractive |
|00001dd0| 6c 6f 67 69 6e 20 6f 6e | 20 79 6f 75 72 20 67 61 |login on| your ga|
|00001de0| 74 77 61 79 2c 0a 20 20 | 75 73 69 6e 67 20 72 6c |tway,. |using rl|
|00001df0| 6f 67 69 6e 2c 20 74 65 | 6c 6e 65 74 2c 20 6f 72 |ogin, te|lnet, or|
|00001e00| 20 73 6f 6d 65 74 68 69 | 6e 67 20 73 69 6d 69 6c | somethi|ng simil|
|00001e10| 61 72 2e 20 20 47 41 54 | 45 57 41 59 2d 50 52 4f |ar. GAT|EWAY-PRO|
|00001e20| 47 52 41 4d 20 69 73 20 | 74 68 65 20 6e 61 6d 65 |GRAM is |the name|
|00001e30| 0a 20 20 6f 66 20 74 68 | 65 20 70 72 6f 67 72 61 |. of th|e progra|
|00001e40| 6d 20 74 6f 20 75 73 65 | 20 74 6f 20 6c 6f 67 20 |m to use| to log |
|00001e50| 69 6e 20 74 6f 20 74 68 | 65 20 67 61 74 65 77 61 |in to th|e gatewa|
|00001e60| 79 2c 20 61 6e 64 20 47 | 41 54 45 57 41 59 2d 50 |y, and G|ATEWAY-P|
|00001e70| 52 4f 47 52 41 4d 2d 41 | 52 47 53 0a 20 20 69 73 |ROGRAM-A|RGS. is|
|00001e80| 20 61 20 6c 69 73 74 20 | 6f 66 20 61 72 67 75 6d | a list |of argum|
|00001e90| 65 6e 74 73 20 74 6f 20 | 70 61 73 73 20 74 6f 20 |ents to |pass to |
|00001ea0| 69 74 2e 20 20 46 54 50 | 2d 50 52 4f 47 52 41 4d |it. FTP|-PROGRAM|
|00001eb0| 20 69 73 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 | is the |name of |
|00001ec0| 74 68 65 20 46 54 50 0a | 20 20 70 72 6f 67 72 61 |the FTP.| progra|
|00001ed0| 6d 20 6f 6e 20 74 68 65 | 20 67 61 74 65 77 61 79 |m on the| gateway|
|00001ee0| 2e 20 20 41 20 6c 69 6b | 65 6c 79 20 73 65 74 74 |. A lik|ely sett|
|00001ef0| 69 6e 67 20 66 6f 72 20 | 74 68 69 73 20 76 61 72 |ing for |this var|
|00001f00| 69 61 62 6c 65 20 77 6f | 75 6c 64 20 62 65 0a 20 |iable wo|uld be. |
|00001f10| 20 22 65 78 65 63 20 66 | 74 70 22 2e 20 20 46 54 | "exec f|tp". FT|
|00001f20| 50 2d 50 52 4f 47 52 41 | 4d 2d 41 52 47 53 20 69 |P-PROGRA|M-ARGS i|
|00001f30| 73 20 61 20 6c 69 73 74 | 20 6f 66 20 61 72 67 75 |s a list| of argu|
|00001f40| 6d 65 6e 74 73 20 74 6f | 20 70 61 73 73 0a 20 20 |ments to| pass. |
|00001f50| 74 6f 20 46 54 50 2d 50 | 52 4f 47 52 41 4d 2e 20 |to FTP-P|ROGRAM. |
|00001f60| 20 59 6f 75 20 70 72 6f | 62 61 62 6c 79 20 77 61 | You pro|bably wa|
|00001f70| 6e 74 20 74 6f 20 73 65 | 74 20 74 68 65 73 65 20 |nt to se|t these |
|00001f80| 74 6f 20 74 68 65 20 73 | 61 6d 65 20 76 61 6c 75 |to the s|ame valu|
|00001f90| 65 20 61 73 0a 20 20 65 | 66 73 2d 66 74 70 2d 70 |e as. e|fs-ftp-p|
|00001fa0| 72 6f 67 72 61 6d 2d 61 | 72 67 73 20 3c 56 3e 2e |rogram-a|rgs <V>.|
|00001fb0| 20 20 49 66 20 79 6f 75 | 20 61 72 65 20 75 73 69 | If you| are usi|
|00001fc0| 6e 67 20 74 68 69 73 20 | 6f 70 74 69 6f 6e 2c 20 |ng this |option, |
|00001fd0| 72 65 61 64 20 74 68 65 | 0a 20 20 64 6f 63 75 6d |read the|. docum|
|00001fe0| 65 6e 74 61 74 69 6f 6e | 20 61 74 20 74 68 65 20 |entation| at the |
|00001ff0| 74 6f 70 20 6f 66 20 65 | 66 73 2d 67 77 70 2e 65 |top of e|fs-gwp.e|
|00002000| 6c 2c 20 61 6e 64 20 73 | 65 65 20 0a 20 20 65 66 |l, and s|ee . ef|
|00002010| 73 2d 67 77 70 2d 73 65 | 74 75 70 2d 74 65 72 6d |s-gwp-se|tup-term|
|00002020| 2d 63 6f 6d 6d 61 6e 64 | 20 3c 56 3e 2e 1f 0a 28 |-command| <V>...(|
|00002030| 64 65 66 76 61 72 20 65 | 66 73 2d 67 61 74 65 77 |defvar e|fs-gatew|
|00002040| 61 79 2d 74 79 70 65 20 | 6e 69 6c 20 28 23 24 20 |ay-type |nil (#$ |
|00002050| 2e 20 34 30 36 37 29 29 | 0a 23 40 31 33 34 20 2a |. 4067))|.#@134 *|
|00002060| 56 61 6c 75 65 20 6f 66 | 20 60 65 66 73 2d 68 61 |Value of| `efs-ha|
|00002070| 73 68 2d 6d 61 72 6b 2d | 73 69 7a 65 27 20 66 6f |sh-mark-|size' fo|
|00002080| 72 20 46 54 50 20 63 6c | 69 65 6e 74 73 20 6f 6e |r FTP cl|ients on|
|00002090| 20 60 65 66 73 2d 67 61 | 74 65 77 61 79 2d 68 6f | `efs-ga|teway-ho|
|000020a0| 73 74 27 2e 0a 53 65 65 | 20 74 68 65 20 64 6f 63 |st'..See| the doc|
|000020b0| 75 6d 65 6e 74 61 74 69 | 6f 6e 20 6f 66 20 74 68 |umentati|on of th|
|000020c0| 65 73 65 20 76 61 72 69 | 61 62 6c 65 73 20 66 6f |ese vari|ables fo|
|000020d0| 72 20 6d 6f 72 65 20 69 | 6e 66 6f 72 6d 61 74 69 |r more i|nformati|
|000020e0| 6f 6e 2e 1f 0a 28 64 65 | 66 76 61 72 20 65 66 73 |on...(de|fvar efs|
|000020f0| 2d 67 61 74 65 77 61 79 | 2d 68 61 73 68 2d 6d 61 |-gateway|-hash-ma|
|00002100| 72 6b 2d 73 69 7a 65 20 | 6e 69 6c 20 28 23 24 20 |rk-size |nil (#$ |
|00002110| 2e 20 2d 38 32 38 37 29 | 29 0a 23 40 31 32 34 20 |. -8287)|).#@124 |
|00002120| 2a 56 61 6c 75 65 20 6f | 66 20 60 65 66 73 2d 69 |*Value o|f `efs-i|
|00002130| 6e 63 6f 6d 69 6e 67 2d | 62 69 6e 61 72 79 2d 68 |ncoming-|binary-h|
|00002140| 6d 2d 73 69 7a 65 27 20 | 66 6f 72 20 60 65 66 73 |m-size' |for `efs|
|00002150| 2d 67 61 74 65 77 61 79 | 2d 68 6f 73 74 27 2e 0a |-gateway|-host'..|
|00002160| 53 65 65 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |See docu|mentatio|
|00002170| 6e 20 6f 66 20 74 68 65 | 73 65 20 76 61 72 69 61 |n of the|se varia|
|00002180| 62 6c 65 73 20 66 6f 72 | 20 6d 6f 72 65 20 69 6e |bles for| more in|
|00002190| 66 6f 72 6d 61 74 69 6f | 6e 2e 1f 0a 28 64 65 66 |formatio|n...(def|
|000021a0| 76 61 72 20 65 66 73 2d | 67 61 74 65 77 61 79 2d |var efs-|gateway-|
|000021b0| 69 6e 63 6f 6d 69 6e 67 | 2d 62 69 6e 61 72 79 2d |incoming|-binary-|
|000021c0| 68 6d 2d 73 69 7a 65 20 | 6e 69 6c 20 28 23 24 20 |hm-size |nil (#$ |
|000021d0| 2e 20 2d 38 34 38 30 29 | 29 0a 23 40 31 37 33 20 |. -8480)|).#@173 |
|000021e0| 54 65 6d 70 6c 61 74 65 | 20 75 73 65 64 20 74 6f |Template| used to|
|000021f0| 20 63 72 65 61 74 65 20 | 74 65 6d 70 6f 72 61 72 | create |temporar|
|00002200| 79 20 66 69 6c 65 73 20 | 77 68 65 6e 20 66 74 70 |y files |when ftp|
|00002210| 2d 69 6e 67 20 74 68 72 | 6f 75 67 68 20 61 20 67 |-ing thr|ough a g|
|00002220| 61 74 65 77 61 79 2e 0a | 54 68 69 73 20 73 68 6f |ateway..|This sho|
|00002230| 75 6c 64 20 62 65 20 74 | 68 65 20 6e 61 6d 65 20 |uld be t|he name |
|00002240| 6f 66 20 74 68 65 20 66 | 69 6c 65 20 6f 6e 20 74 |of the f|ile on t|
|00002250| 68 65 20 67 61 74 65 77 | 61 79 2c 20 61 6e 64 20 |he gatew|ay, and |
|00002260| 6e 6f 74 20 6e 65 63 65 | 73 73 61 72 69 6c 79 0a |not nece|ssarily.|
|00002270| 74 68 65 20 6e 61 6d 65 | 20 6f 6e 20 74 68 65 20 |the name| on the |
|00002280| 6c 6f 63 61 6c 20 68 6f | 73 74 2e 1f 0a 28 64 65 |local ho|st...(de|
|00002290| 66 76 61 72 20 65 66 73 | 2d 67 61 74 65 77 61 79 |fvar efs|-gateway|
|000022a0| 2d 74 6d 70 2d 6e 61 6d | 65 2d 74 65 6d 70 6c 61 |-tmp-nam|e-templa|
|000022b0| 74 65 20 22 2f 74 6d 70 | 2f 65 66 73 22 20 28 23 |te "/tmp|/efs" (#|
|000022c0| 24 20 2e 20 38 36 37 32 | 29 29 0a 23 40 33 39 30 |$ . 8672|)).#@390|
|000022d0| 20 41 6e 20 61 6c 69 73 | 74 20 6f 66 20 64 69 72 | An alis|t of dir|
|000022e0| 65 63 74 6f 72 69 65 73 | 20 63 72 6f 73 73 2d 6d |ectories| cross-m|
|000022f0| 6f 75 6e 74 65 64 20 62 | 65 74 77 65 65 6e 20 74 |ounted b|etween t|
|00002300| 68 65 20 67 61 74 65 77 | 61 79 20 61 6e 64 20 6c |he gatew|ay and l|
|00002310| 6f 63 61 6c 20 68 6f 73 | 74 2e 0a 45 61 63 68 20 |ocal hos|t..Each |
|00002320| 65 6e 74 72 79 20 69 73 | 20 6f 66 20 74 68 65 20 |entry is| of the |
|00002330| 66 6f 72 6d 20 28 20 44 | 49 52 31 20 2e 20 44 49 |form ( D|IR1 . DI|
|00002340| 52 32 20 29 2c 20 77 68 | 65 72 65 20 44 49 52 31 |R2 ), wh|ere DIR1|
|00002350| 20 69 73 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 | is the |name of |
|00002360| 74 68 65 0a 64 69 72 65 | 63 74 6f 72 79 20 6f 6e |the.dire|ctory on|
|00002370| 20 74 68 65 20 6c 6f 63 | 61 6c 20 68 6f 73 74 2c | the loc|al host,|
|00002380| 20 61 6e 64 20 44 49 52 | 32 20 69 73 20 69 74 73 | and DIR|2 is its|
|00002390| 20 6e 61 6d 65 20 6f 6e | 20 74 68 65 20 72 65 6d | name on| the rem|
|000023a0| 6f 74 65 20 68 6f 73 74 | 2e 20 42 6f 74 68 0a 44 |ote host|. Both.D|
|000023b0| 49 52 31 20 61 6e 64 20 | 44 49 52 32 20 6d 75 73 |IR1 and |DIR2 mus|
|000023c0| 74 20 62 65 20 73 70 65 | 63 69 66 69 65 64 20 69 |t be spe|cified i|
|000023d0| 6e 20 64 69 72 65 63 74 | 6f 72 79 20 73 79 6e 74 |n direct|ory synt|
|000023e0| 61 78 2c 20 69 2e 65 2e | 20 65 6e 64 20 69 6e 20 |ax, i.e.| end in |
|000023f0| 61 20 73 6c 61 73 68 2e | 0a 4e 6f 74 65 20 74 68 |a slash.|.Note th|
|00002400| 61 74 20 77 65 20 77 69 | 6c 6c 20 61 73 73 75 6d |at we wi|ll assum|
|00002410| 65 20 74 68 61 74 20 73 | 75 62 64 69 72 73 20 6f |e that s|ubdirs o|
|00002420| 66 20 44 49 52 31 20 61 | 6e 64 20 44 49 52 32 20 |f DIR1 a|nd DIR2 |
|00002430| 61 72 65 20 61 6c 73 6f | 20 61 63 63 65 73 73 69 |are also| accessi|
|00002440| 62 6c 65 0a 6f 6e 20 62 | 6f 74 68 20 6d 61 63 68 |ble.on b|oth mach|
|00002450| 69 6e 65 73 2e 1f 0a 28 | 64 65 66 76 61 72 20 65 |ines...(|defvar e|
|00002460| 66 73 2d 67 61 74 65 77 | 61 79 2d 6d 6f 75 6e 74 |fs-gatew|ay-mount|
|00002470| 65 64 2d 64 69 72 73 2d | 61 6c 69 73 74 20 6e 69 |ed-dirs-|alist ni|
|00002480| 6c 20 28 23 24 20 2e 20 | 38 39 31 33 29 29 0a 23 |l (#$ . |8913)).#|
|00002490| 40 36 38 20 2a 52 65 67 | 75 6c 61 72 20 65 78 70 |@68 *Reg|ular exp|
|000024a0| 72 65 73 73 69 6f 6e 20 | 74 6f 20 6d 61 74 63 68 |ression |to match|
|000024b0| 20 74 68 65 20 70 72 6f | 6d 70 74 20 6f 66 20 74 | the pro|mpt of t|
|000024c0| 68 65 20 67 61 74 65 77 | 61 79 20 46 54 50 20 63 |he gatew|ay FTP c|
|000024d0| 6c 69 65 6e 74 2e 1f 0a | 28 64 65 66 76 61 72 20 |lient...|(defvar |
|000024e0| 65 66 73 2d 67 61 74 65 | 77 61 79 2d 66 74 70 2d |efs-gate|way-ftp-|
|000024f0| 70 72 6f 6d 70 74 2d 72 | 65 67 65 78 70 20 22 5e |prompt-r|egexp "^|
|00002500| 5c 5c 28 66 74 70 5c 5c | 7c 46 74 70 5c 5c 7c 46 |\\(ftp\\||Ftp\\|F|
|00002510| 54 50 5c 5c 29 3e 20 2a | 22 20 28 23 24 20 2e 20 |TP\\)> *|" (#$ . |
|00002520| 2d 39 33 36 34 29 29 0a | 23 40 32 31 32 20 54 65 |-9364)).|#@212 Te|
|00002530| 6d 70 6c 61 74 65 20 75 | 73 65 64 20 74 6f 20 63 |mplate u|sed to c|
|00002540| 72 65 61 74 65 20 74 65 | 6d 70 6f 72 61 72 79 20 |reate te|mporary |
|00002550| 66 69 6c 65 73 2e 0a 49 | 66 20 79 6f 75 20 61 72 |files..I|f you ar|
|00002560| 65 20 77 6f 72 72 69 65 | 64 20 61 62 6f 75 74 20 |e worrie|d about |
|00002570| 73 65 63 75 72 69 74 79 | 2c 20 6d 61 6b 65 20 74 |security|, make t|
|00002580| 68 69 73 20 61 20 64 69 | 72 65 63 74 6f 72 79 20 |his a di|rectory |
|00002590| 69 6e 20 73 6f 6d 65 0a | 62 6f 6d 62 2d 70 72 6f |in some.|bomb-pro|
|000025a0| 6f 66 20 63 61 76 65 20 | 73 6f 6d 65 77 68 65 72 |of cave |somewher|
|000025b0| 65 2e 20 65 66 73 20 64 | 6f 65 73 20 63 6c 65 61 |e. efs d|oes clea|
|000025c0| 6e 20 75 70 20 69 74 73 | 20 74 65 6d 70 20 66 69 |n up its| temp fi|
|000025d0| 6c 65 73 2c 20 62 75 74 | 0a 74 68 65 79 20 64 6f |les, but|.they do|
|000025e0| 20 6c 69 76 65 20 66 6f | 72 20 73 68 6f 72 74 20 | live fo|r short |
|000025f0| 70 65 72 69 6f 64 73 20 | 6f 66 20 74 69 6d 65 2e |periods |of time.|
|00002600| 1f 0a 28 64 65 66 76 61 | 72 20 65 66 73 2d 74 6d |..(defva|r efs-tm|
|00002610| 70 2d 6e 61 6d 65 2d 74 | 65 6d 70 6c 61 74 65 20 |p-name-t|emplate |
|00002620| 22 2f 74 6d 70 2f 65 66 | 73 22 20 28 23 24 20 2e |"/tmp/ef|s" (#$ .|
|00002630| 20 39 35 31 38 29 29 0a | 23 40 36 38 39 20 2a 49 | 9518)).|#@689 *I|
|00002640| 66 20 74 2c 20 75 73 65 | 20 61 20 70 61 73 73 77 |f t, use| a passw|
|00002650| 6f 72 64 20 6f 66 20 60 | 75 73 65 72 40 68 6f 73 |ord of `|user@hos|
|00002660| 74 27 20 77 68 65 6e 20 | 6c 6f 67 67 69 6e 67 20 |t' when |logging |
|00002670| 69 6e 20 61 73 20 74 68 | 65 20 61 6e 6f 6e 79 6d |in as th|e anonym|
|00002680| 6f 75 73 20 75 73 65 72 | 2e 0a 60 68 6f 73 74 27 |ous user|..`host'|
|00002690| 20 69 73 20 67 65 6e 65 | 72 61 74 65 64 20 62 79 | is gene|rated by|
|000026a0| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 20 60 65 | the fun|ction `e|
|000026b0| 66 73 2d 73 79 73 74 65 | 6d 2d 66 71 64 6e 27 2e |fs-syste|m-fqdn'.|
|000026c0| 20 49 66 20 60 73 79 73 | 74 65 6d 20 6e 61 6d 65 | If `sys|tem name|
|000026d0| 27 20 72 65 74 75 72 6e | 73 0a 61 20 66 75 6c 6c |' return|s.a full|
|000026e0| 79 20 71 75 61 6c 69 66 | 69 65 64 20 64 6f 6d 61 |y qualif|ied doma|
|000026f0| 69 6e 20 6e 61 6d 65 2c | 20 60 65 66 73 2d 73 79 |in name,| `efs-sy|
|00002700| 73 74 65 6d 2d 66 71 64 | 6e 27 20 77 69 6c 6c 20 |stem-fqd|n' will |
|00002710| 72 65 74 75 72 6e 20 74 | 68 69 73 2e 20 4f 74 68 |return t|his. Oth|
|00002720| 65 72 77 69 73 65 2c 0a | 69 74 20 77 69 6c 6c 20 |erwise,.|it will |
|00002730| 61 74 74 65 6d 70 74 20 | 74 6f 20 75 73 65 20 6e |attempt |to use n|
|00002740| 73 6c 6f 6f 6b 75 70 20 | 74 6f 20 6f 62 74 61 69 |slookup |to obtai|
|00002750| 6e 20 61 20 66 75 6c 6c | 79 20 71 75 61 6c 69 66 |n a full|y qualif|
|00002760| 69 65 64 20 64 6f 6d 61 | 69 6e 20 6e 61 6d 65 2e |ied doma|in name.|
|00002770| 20 49 66 0a 74 68 69 73 | 20 69 73 20 75 6e 73 75 | If.this| is unsu|
|00002780| 63 63 65 73 73 66 75 6c | 2c 20 74 68 65 20 72 65 |ccessful|, the re|
|00002790| 74 75 72 6e 65 64 20 76 | 61 6c 75 65 20 77 69 6c |turned v|alue wil|
|000027a0| 6c 20 62 65 20 74 68 65 | 20 73 61 6d 65 20 61 73 |l be the| same as|
|000027b0| 20 60 73 79 73 74 65 6d | 2d 6e 61 6d 65 27 2c 0a | `system|-name',.|
|000027c0| 77 68 65 74 68 65 72 20 | 74 68 69 73 20 69 73 20 |whether |this is |
|000027d0| 61 20 66 75 6c 6c 79 20 | 71 75 61 6c 69 66 69 65 |a fully |qualifie|
|000027e0| 64 20 64 6f 6d 61 69 6e | 20 6e 61 6d 65 20 6f 72 |d domain| name or|
|000027f0| 20 6e 6f 74 2e 0a 0a 49 | 66 20 61 20 73 74 72 69 | not...I|f a stri|
|00002800| 6e 67 20 74 68 65 6e 20 | 75 73 65 20 74 68 61 74 |ng then |use that|
|00002810| 20 61 73 20 74 68 65 20 | 70 61 73 73 77 6f 72 64 | as the |password|
|00002820| 2e 0a 0a 49 66 20 6e 69 | 6c 20 74 68 65 6e 20 70 |...If ni|l then p|
|00002830| 72 6f 6d 70 74 20 74 68 | 65 20 75 73 65 72 20 66 |rompt th|e user f|
|00002840| 6f 72 20 61 20 70 61 73 | 73 77 6f 72 64 2e 0a 0a |or a pas|sword...|
|00002850| 42 65 77 61 72 65 20 74 | 68 61 74 20 73 6f 6d 65 |Beware t|hat some|
|00002860| 20 6f 70 65 72 61 74 69 | 6e 67 20 73 79 73 74 65 | operati|ng syste|
|00002870| 6d 73 2c 20 73 75 63 68 | 20 61 73 20 4d 56 53 2c |ms, such| as MVS,|
|00002880| 20 72 65 73 74 72 69 63 | 74 20 73 75 62 73 74 61 | restric|t substa|
|00002890| 6e 74 69 61 6c 6c 79 0a | 74 68 65 20 70 61 73 73 |ntially.|the pass|
|000028a0| 77 6f 72 64 20 6c 65 6e | 67 74 68 2e 20 54 68 65 |word len|gth. The|
|000028b0| 20 6c 6f 67 69 6e 20 77 | 69 6c 6c 20 66 61 69 6c | login w|ill fail|
|000028c0| 20 77 69 74 68 20 61 20 | 77 65 69 72 64 20 65 72 | with a |weird er|
|000028d0| 72 6f 72 20 6d 65 73 73 | 61 67 65 0a 69 66 20 79 |ror mess|age.if y|
|000028e0| 6f 75 20 65 78 63 65 65 | 64 20 69 74 2e 1f 0a 28 |ou excee|d it...(|
|000028f0| 64 65 66 76 61 72 20 65 | 66 73 2d 67 65 6e 65 72 |defvar e|fs-gener|
|00002900| 61 74 65 2d 61 6e 6f 6e | 79 6d 6f 75 73 2d 70 61 |ate-anon|ymous-pa|
|00002910| 73 73 77 6f 72 64 20 74 | 20 28 23 24 20 2e 20 2d |ssword t| (#$ . -|
|00002920| 39 37 39 30 29 29 0a 23 | 40 31 39 38 20 2a 49 6e |9790)).#|@198 *In|
|00002930| 64 69 63 61 74 65 73 20 | 68 6f 73 74 20 75 73 65 |dicates |host use|
|00002940| 72 20 70 61 69 72 73 20 | 66 6f 72 20 77 68 69 63 |r pairs |for whic|
|00002950| 68 20 70 61 73 73 77 6f | 72 64 73 20 73 68 6f 75 |h passwo|rds shou|
|00002960| 6c 64 20 6e 6f 74 20 62 | 65 20 63 61 63 68 65 64 |ld not b|e cached|
|00002970| 2e 0a 49 66 20 6e 6f 6e | 2d 6e 69 6c 2c 20 73 68 |..If non|-nil, sh|
|00002980| 6f 75 6c 64 20 62 65 20 | 61 20 72 65 67 65 78 70 |ould be |a regexp|
|00002990| 20 6d 61 74 63 68 69 6e | 67 20 75 73 65 72 40 68 | matchin|g user@h|
|000029a0| 6f 73 74 20 63 6f 6e 73 | 74 72 75 63 74 69 6f 6e |ost cons|truction|
|000029b0| 73 20 66 6f 72 20 77 68 | 69 63 68 0a 65 66 73 20 |s for wh|ich.efs |
|000029c0| 73 68 6f 75 6c 64 20 6e | 6f 74 20 73 74 6f 72 65 |should n|ot store|
|000029d0| 20 70 61 73 73 77 6f 72 | 64 73 20 69 6e 20 69 74 | passwor|ds in it|
|000029e0| 73 20 69 6e 74 65 72 6e | 61 6c 20 63 61 63 68 65 |s intern|al cache|
|000029f0| 2e 1f 0a 28 64 65 66 76 | 61 72 20 65 66 73 2d 68 |...(defv|ar efs-h|
|00002a00| 69 67 68 2d 73 65 63 75 | 72 69 74 79 2d 68 6f 73 |igh-secu|rity-hos|
|00002a10| 74 73 20 6e 69 6c 20 28 | 23 24 20 2e 20 2d 31 30 |ts nil (|#$ . -10|
|00002a20| 35 34 31 29 29 0a 23 40 | 31 39 36 20 2a 46 69 6c |541)).#@|196 *Fil|
|00002a30| 65 73 20 77 68 6f 73 65 | 20 6e 61 6d 65 73 20 20 |es whose| names |
|00002a40| 6d 61 74 63 68 20 74 68 | 69 73 20 72 65 67 65 78 |match th|is regex|
|00002a50| 70 20 77 69 6c 6c 20 62 | 65 20 63 6f 6e 73 69 64 |p will b|e consid|
|00002a60| 65 72 65 64 20 74 6f 20 | 62 65 20 62 69 6e 61 72 |ered to |be binar|
|00002a70| 79 2e 0a 42 79 20 62 69 | 6e 61 72 79 20 68 65 72 |y..By bi|nary her|
|00002a80| 65 2c 20 77 65 20 6d 65 | 61 6e 20 38 2d 62 69 74 |e, we me|an 8-bit|
|00002a90| 20 62 69 6e 61 72 79 20 | 66 69 6c 65 73 20 28 74 | binary |files (t|
|00002aa0| 68 65 20 75 73 75 61 6c | 20 75 6e 69 78 20 62 69 |he usual| unix bi|
|00002ab0| 6e 61 72 79 20 66 69 6c | 65 73 29 2e 0a 49 66 20 |nary fil|es)..If |
|00002ac0| 6e 69 6c 2c 20 6e 6f 20 | 66 69 6c 65 73 20 77 69 |nil, no |files wi|
|00002ad0| 6c 6c 20 62 65 20 63 6f | 6e 73 69 64 65 72 65 64 |ll be co|nsidered|
|00002ae0| 20 74 6f 20 62 65 20 62 | 69 6e 61 72 79 2e 1f 0a | to be b|inary...|
|00002af0| 28 64 65 66 76 61 72 20 | 65 66 73 2d 62 69 6e 61 |(defvar |efs-bina|
|00002b00| 72 79 2d 66 69 6c 65 2d | 6e 61 6d 65 2d 72 65 67 |ry-file-|name-reg|
|00002b10| 65 78 70 20 28 63 6f 6e | 63 61 74 20 22 5c 5c 2e |exp (con|cat "\\.|
|00002b20| 22 20 22 5c 5c 28 5b 7a | 5a 5d 5c 5c 7c 74 3f 67 |" "\\([z|Z]\\|t?g|
|00002b30| 7a 5c 5c 7c 6c 7a 68 5c | 5c 7c 61 72 63 5c 5c 7c |z\\|lzh\|\|arc\\||
|00002b40| 7a 69 70 5c 5c 7c 7a 6f | 6f 5c 5c 7c 74 61 5b 72 |zip\\|zo|o\\|ta[r|
|00002b50| 7a 5d 5c 5c 7c 64 76 69 | 5c 5c 7c 73 69 74 5c 5c |z]\\|dvi|\\|sit\\|
|00002b60| 7c 22 20 22 70 73 5c 5c | 7c 65 6c 63 5c 5c 7c 67 ||" "ps\\||elc\\|g|
|00002b70| 69 66 5c 5c 7c 5a 2d 70 | 61 72 74 2d 2e 2e 5c 5c |if\\|Z-p|art-..\\|
|00002b80| 7c 74 70 7a 5c 5c 7c 65 | 78 65 5c 5c 7c 5b 6a 6d ||tpz\\|e|xe\\|[jm|
|00002b90| 5d 70 67 5c 5c 7c 54 5a | 5b 61 2d 7a 5d 3f 5c 5c |]pg\\|TZ|[a-z]?\\|
|00002ba0| 7c 6c 69 62 5c 5c 29 22 | 20 22 5c 5c 28 7e 5c 5c ||lib\\)"| "\\(~\\|
|00002bb0| 7c 7e 5b 30 2d 39 5d 2b | 7e 5c 5c 29 3f 24 22 20 ||~[0-9]+|~\\)?$" |
|00002bc0| 22 5c 5c 7c 22 20 22 5c | 5c 2e 22 20 22 5c 5c 28 |"\\|" "\|\." "\\(|
|00002bd0| 41 52 43 5c 5c 7c 45 4c | 43 5c 5c 7c 54 41 47 53 |ARC\\|EL|C\\|TAGS|
|00002be0| 5c 5c 7c 45 58 45 5c 5c | 7c 5a 49 50 5c 5c 7c 44 |\\|EXE\\||ZIP\\|D|
|00002bf0| 56 49 7c 5a 4f 4f 5c 5c | 7c 47 49 46 5c 5c 7c 54 |VI|ZOO\\||GIF\\|T|
|00002c00| 3f 47 5a 5c 5c 7c 22 20 | 22 5b 4a 4d 5d 50 47 5c |?GZ\\|" |"[JM]PG\|
|00002c10| 5c 29 22 20 22 5c 5c 28 | 5b 2e 23 3b 5d 5b 30 2d |\)" "\\(|[.#;][0-|
|00002c20| 39 5d 2b 5c 5c 29 3f 24 | 22 29 20 28 23 24 20 2e |9]+\\)?$|") (#$ .|
|00002c30| 20 2d 31 30 37 39 36 29 | 29 0a 23 40 31 31 35 20 | -10796)|).#@115 |
|00002c40| 2a 41 6c 6c 20 66 69 6c | 65 73 20 6f 6e 20 68 6f |*All fil|es on ho|
|00002c50| 73 74 73 20 6d 61 74 63 | 68 69 6e 67 20 74 68 69 |sts matc|hing thi|
|00002c60| 73 20 72 65 67 65 78 70 | 20 61 72 65 20 74 72 65 |s regexp| are tre|
|00002c70| 61 74 65 64 20 61 73 20 | 38 2d 62 69 74 20 62 69 |ated as |8-bit bi|
|00002c80| 6e 61 72 79 2e 0a 53 65 | 74 74 69 6e 67 20 74 68 |nary..Se|tting th|
|00002c90| 69 73 20 74 6f 20 6e 69 | 6c 2c 20 69 6e 68 69 62 |is to ni|l, inhib|
|00002ca0| 69 74 73 20 74 68 69 73 | 20 66 65 61 74 75 72 65 |its this| feature|
|00002cb0| 2e 1f 0a 28 64 65 66 76 | 61 72 20 65 66 73 2d 62 |...(defv|ar efs-b|
|00002cc0| 69 6e 61 72 79 2d 66 69 | 6c 65 2d 68 6f 73 74 2d |inary-fi|le-host-|
|00002cd0| 72 65 67 65 78 70 20 6e | 69 6c 20 28 23 24 20 2e |regexp n|il (#$ .|
|00002ce0| 20 2d 31 31 33 32 38 29 | 29 0a 23 40 32 35 34 20 | -11328)|).#@254 |
|00002cf0| 2a 46 69 6c 65 73 20 77 | 68 6f 73 65 20 6e 61 6d |*Files w|hose nam|
|00002d00| 65 73 20 6d 61 74 63 68 | 20 74 68 69 73 20 72 65 |es match| this re|
|00002d10| 67 65 78 70 20 77 69 6c | 6c 20 62 65 20 63 6f 6e |gexp wil|l be con|
|00002d20| 73 69 64 65 72 65 64 20 | 74 6f 20 50 44 50 20 31 |sidered |to PDP 1|
|00002d30| 30 20 62 69 6e 61 72 69 | 65 73 2e 0a 54 68 65 73 |0 binari|es..Thes|
|00002d40| 65 20 61 72 65 20 33 36 | 2d 62 69 74 20 77 6f 72 |e are 36|-bit wor|
|00002d50| 64 2d 61 6c 69 67 6e 65 | 64 20 62 69 6e 61 72 79 |d-aligne|d binary|
|00002d60| 20 66 69 6c 65 73 2e 20 | 54 68 69 73 20 69 73 20 | files. |This is |
|00002d70| 72 65 61 6c 6c 79 20 6f | 6e 6c 79 20 72 65 6c 65 |really o|nly rele|
|00002d80| 76 61 6e 74 20 66 6f 72 | 0a 66 69 6c 65 73 20 6f |vant for|.files o|
|00002d90| 6e 20 50 44 50 20 31 30 | 27 73 2c 20 61 6e 64 20 |n PDP 10|'s, and |
|00002da0| 73 69 6d 69 6c 61 72 20 | 6d 61 63 68 69 6e 65 73 |similar |machines|
|00002db0| 2e 20 49 66 20 6e 69 6c | 2c 20 6e 6f 20 66 69 6c |. If nil|, no fil|
|00002dc0| 65 73 20 77 69 6c 6c 20 | 62 65 20 63 6f 6e 73 69 |es will |be consi|
|00002dd0| 64 65 72 65 64 0a 74 6f | 20 62 65 20 50 44 50 20 |dered.to| be PDP |
|00002de0| 31 30 20 62 69 6e 61 72 | 69 65 73 2e 1f 0a 28 64 |10 binar|ies...(d|
|00002df0| 65 66 76 61 72 20 65 66 | 73 2d 33 36 2d 62 69 74 |efvar ef|s-36-bit|
|00002e00| 2d 62 69 6e 61 72 79 2d | 66 69 6c 65 2d 6e 61 6d |-binary-|file-nam|
|00002e10| 65 2d 72 65 67 65 78 70 | 20 6e 69 6c 20 28 23 24 |e-regexp| nil (#$|
|00002e20| 20 2e 20 2d 31 31 35 30 | 34 29 29 0a 23 40 37 35 | . -1150|4)).#@75|
|00002e30| 20 2a 46 69 6c 65 73 20 | 77 68 6f 73 65 20 6e 61 | *Files |whose na|
|00002e40| 6d 65 73 20 6d 61 74 63 | 68 20 74 68 69 73 20 72 |mes matc|h this r|
|00002e50| 65 67 65 78 70 20 77 69 | 6c 6c 20 62 65 20 63 6f |egexp wi|ll be co|
|00002e60| 6e 73 69 64 65 72 65 64 | 20 74 6f 20 62 65 20 74 |nsidered| to be t|
|00002e70| 65 78 74 20 66 69 6c 65 | 73 2e 1f 0a 28 64 65 66 |ext file|s...(def|
|00002e80| 76 61 72 20 65 66 73 2d | 74 65 78 74 2d 66 69 6c |var efs-|text-fil|
|00002e90| 65 2d 6e 61 6d 65 2d 72 | 65 67 65 78 70 20 22 2e |e-name-r|egexp ".|
|00002ea0| 2a 22 20 28 23 24 20 2e | 20 2d 31 31 38 32 35 29 |*" (#$ .| -11825)|
|00002eb0| 29 0a 23 40 31 35 30 20 | 2a 49 66 20 6e 6f 6e 2d |).#@150 |*If non-|
|00002ec0| 6e 69 6c 2c 20 65 66 73 | 20 77 69 6c 6c 20 70 72 |nil, efs| will pr|
|00002ed0| 6f 6d 70 74 20 66 6f 72 | 20 74 68 65 20 74 72 61 |ompt for| the tra|
|00002ee0| 6e 73 66 65 72 20 74 79 | 70 65 20 66 6f 72 20 65 |nsfer ty|pe for e|
|00002ef0| 61 63 68 20 66 69 6c 65 | 20 74 72 61 6e 73 66 65 |ach file| transfe|
|00002f00| 72 2e 0a 54 68 65 20 63 | 6f 6d 6d 61 6e 64 20 65 |r..The c|ommand e|
|00002f10| 66 73 2d 70 72 6f 6d 70 | 74 2d 66 6f 72 2d 74 72 |fs-promp|t-for-tr|
|00002f20| 61 6e 73 66 65 72 2d 74 | 79 70 65 20 63 61 6e 20 |ansfer-t|ype can |
|00002f30| 62 65 20 75 73 65 64 20 | 74 6f 20 74 6f 67 67 6c |be used |to toggl|
|00002f40| 65 20 69 74 73 20 76 61 | 6c 75 65 2e 1f 0a 28 64 |e its va|lue...(d|
|00002f50| 65 66 76 61 72 20 65 66 | 73 2d 70 72 6f 6d 70 74 |efvar ef|s-prompt|
|00002f60| 2d 66 6f 72 2d 74 72 61 | 6e 73 66 65 72 2d 74 79 |-for-tra|nsfer-ty|
|00002f70| 70 65 20 6e 69 6c 20 28 | 23 24 20 2e 20 2d 31 31 |pe nil (|#$ . -11|
|00002f80| 39 36 30 29 29 0a 23 40 | 33 36 33 20 2a 43 6f 6e |960)).#@|363 *Con|
|00002f90| 74 72 6f 6c 73 20 68 6f | 77 20 66 69 6c 65 20 73 |trols ho|w file s|
|00002fa0| 79 73 74 65 6d 73 20 75 | 73 69 6e 67 20 43 52 4c |ystems u|sing CRL|
|00002fb0| 46 20 61 73 20 65 6e 64 | 20 6f 66 20 6c 69 6e 65 |F as end| of line|
|00002fc0| 20 61 72 65 20 74 72 65 | 61 74 65 64 2e 0a 49 66 | are tre|ated..If|
|00002fd0| 20 6e 6f 6e 2d 6e 69 6c | 2c 20 73 75 63 68 20 66 | non-nil|, such f|
|00002fe0| 69 6c 65 20 73 79 73 74 | 65 6d 73 20 77 69 6c 6c |ile syst|ems will|
|00002ff0| 20 62 65 20 63 6f 6e 73 | 69 64 65 72 65 64 20 65 | be cons|idered e|
|00003000| 71 75 69 76 61 6c 65 6e | 74 20 74 6f 20 74 68 6f |quivalen|t to tho|
|00003010| 73 65 20 77 68 69 63 68 | 20 75 73 65 0a 4c 46 20 |se which| use.LF |
|00003020| 61 73 20 65 6e 64 20 6f | 66 20 6c 69 6e 65 2e 20 |as end o|f line. |
|00003030| 20 54 68 69 73 20 69 73 | 20 70 61 72 74 69 63 75 | This is| particu|
|00003040| 6c 61 72 6c 79 20 72 65 | 6c 65 76 61 6e 74 20 74 |larly re|levant t|
|00003050| 6f 20 74 72 61 6e 73 66 | 65 72 73 20 62 65 74 77 |o transf|ers betw|
|00003060| 65 65 6e 20 44 4f 53 0a | 73 79 73 74 65 6d 73 20 |een DOS.|systems |
|00003070| 61 6e 64 20 55 4e 49 58 | 2e 20 20 53 65 74 74 69 |and UNIX|. Setti|
|00003080| 6e 67 20 74 68 69 73 20 | 74 6f 20 62 65 20 6e 6f |ng this |to be no|
|00003090| 6e 2d 6e 69 6c 20 77 69 | 6c 6c 20 63 61 75 73 65 |n-nil wi|ll cause|
|000030a0| 20 61 6c 6c 20 66 69 6c | 65 20 74 72 61 6e 73 66 | all fil|e transf|
|000030b0| 65 72 73 0a 62 65 74 77 | 65 65 6e 20 44 4f 53 20 |ers.betw|een DOS |
|000030c0| 61 6e 64 20 55 4e 49 58 | 20 73 79 73 74 65 6d 73 |and UNIX| systems|
|000030d0| 20 74 6f 20 75 73 65 20 | 62 65 20 69 6d 61 67 65 | to use |be image|
|000030e0| 20 6f 72 20 62 69 6e 61 | 72 79 20 74 72 61 6e 73 | or bina|ry trans|
|000030f0| 66 65 72 73 2e 1f 0a 28 | 64 65 66 76 61 72 20 65 |fers...(|defvar e|
|00003100| 66 73 2d 74 72 65 61 74 | 2d 63 72 6c 66 2d 61 73 |fs-treat|-crlf-as|
|00003110| 2d 6e 6c 20 6e 69 6c 20 | 28 23 24 20 2e 20 2d 31 |-nl nil |(#$ . -1|
|00003120| 32 31 37 32 29 29 0a 23 | 40 35 35 20 2a 49 66 20 |2172)).#|@55 *If |
|00003130| 6e 6f 6e 2d 6e 69 6c 2c | 20 73 65 6e 64 20 74 68 |non-nil,| send th|
|00003140| 65 20 48 41 53 48 20 63 | 6f 6d 6d 61 6e 64 20 74 |e HASH c|ommand t|
|00003150| 6f 20 74 68 65 20 46 54 | 50 20 63 6c 69 65 6e 74 |o the FT|P client|
|00003160| 2e 1f 0a 28 64 65 66 76 | 61 72 20 65 66 73 2d 73 |...(defv|ar efs-s|
|00003170| 65 6e 64 2d 68 61 73 68 | 20 74 20 28 23 24 20 2e |end-hash| t (#$ .|
|00003180| 20 2d 31 32 35 38 38 29 | 29 0a 23 40 37 36 31 20 | -12588)|).#@761 |
|00003190| 2a 44 65 66 61 75 6c 74 | 20 73 69 7a 65 2c 20 69 |*Default| size, i|
|000031a0| 6e 20 62 79 74 65 73 2c | 20 62 65 74 77 65 65 6e |n bytes,| between|
|000031b0| 20 68 61 73 68 2d 6d 61 | 72 6b 73 20 77 68 65 6e | hash-ma|rks when|
|000031c0| 20 74 72 61 6e 73 66 65 | 72 72 69 6e 67 20 61 20 | transfe|rring a |
|000031d0| 66 69 6c 65 2e 0a 49 66 | 20 74 68 69 73 20 69 73 |file..If| this is|
|000031e0| 20 6e 69 6c 20 74 68 65 | 6e 20 65 66 73 20 77 69 | nil the|n efs wi|
|000031f0| 6c 6c 20 61 74 74 65 6d | 70 74 20 74 6f 20 61 73 |ll attem|pt to as|
|00003200| 73 69 67 6e 20 61 20 76 | 61 6c 75 65 20 62 61 73 |sign a v|alue bas|
|00003210| 65 64 20 6f 6e 20 74 68 | 65 0a 6f 75 74 70 75 74 |ed on th|e.output|
|00003220| 20 6f 66 20 74 68 65 20 | 48 41 53 48 20 63 6f 6d | of the |HASH com|
|00003230| 6d 61 6e 64 2e 20 41 6c | 73 6f 2c 20 69 66 20 74 |mand. Al|so, if t|
|00003240| 68 69 73 20 76 61 72 69 | 61 62 6c 65 20 69 73 20 |his vari|able is |
|00003250| 69 6e 63 6f 72 72 65 63 | 74 6c 79 20 73 65 74 2c |incorrec|tly set,|
|00003260| 0a 74 68 65 6e 20 65 66 | 73 20 77 69 6c 6c 20 74 |.then ef|s will t|
|00003270| 72 79 20 74 6f 20 63 6f | 72 72 65 63 74 20 69 74 |ry to co|rrect it|
|00003280| 20 62 61 73 65 64 20 6f | 6e 20 74 68 65 20 73 69 | based o|n the si|
|00003290| 7a 65 20 6f 66 20 74 68 | 65 20 6c 61 73 74 20 66 |ze of th|e last f|
|000032a0| 69 6c 65 0a 74 72 61 6e | 73 66 65 72 72 65 64 2c |ile.tran|sferred,|
|000032b0| 20 61 6e 64 20 74 68 65 | 20 6e 75 6d 62 65 72 20 | and the| number |
|000032c0| 68 61 73 68 65 73 20 6f | 75 74 70 75 74 65 64 20 |hashes o|utputed |
|000032d0| 62 79 20 74 68 65 20 63 | 6c 69 65 6e 74 20 64 75 |by the c|lient du|
|000032e0| 72 69 6e 67 20 74 68 65 | 0a 74 72 61 6e 73 66 65 |ring the|.transfe|
|000032f0| 72 2e 0a 0a 54 68 65 20 | 76 61 72 69 61 62 6c 65 |r...The |variable|
|00003300| 20 60 65 66 73 2d 67 61 | 74 65 77 61 79 2d 68 61 | `efs-ga|teway-ha|
|00003310| 73 68 2d 6d 61 72 6b 2d | 73 69 7a 65 27 20 64 65 |sh-mark-|size' de|
|00003320| 66 69 6e 65 73 20 74 68 | 65 20 63 6f 72 72 65 73 |fines th|e corres|
|00003330| 70 6f 6e 64 69 6e 67 20 | 76 61 6c 75 65 0a 66 6f |ponding |value.fo|
|00003340| 72 20 74 68 65 20 46 54 | 50 20 63 6c 69 65 6e 74 |r the FT|P client|
|00003350| 20 6f 6e 20 74 68 65 20 | 67 61 74 65 77 61 79 2c | on the |gateway,|
|00003360| 20 69 66 20 79 6f 75 20 | 61 72 65 20 75 73 69 6e | if you |are usin|
|00003370| 67 20 61 20 67 61 74 65 | 77 61 79 2e 20 0a 0a 53 |g a gate|way. ..S|
|00003380| 6f 6d 65 20 63 6c 69 65 | 6e 74 2d 73 65 72 76 65 |ome clie|nt-serve|
|00003390| 72 20 63 6f 6d 62 69 6e | 61 74 69 6f 6e 73 20 64 |r combin|ations d|
|000033a0| 6f 20 6e 6f 74 20 63 6f | 72 72 65 63 74 6c 79 20 |o not co|rrectly |
|000033b0| 63 6f 6d 70 75 74 65 20 | 74 68 65 20 6e 75 6d 62 |compute |the numb|
|000033c0| 65 72 20 6f 66 20 68 61 | 73 68 0a 6d 61 72 6b 73 |er of ha|sh.marks|
|000033d0| 20 66 6f 72 20 69 6e 63 | 6f 6d 69 6e 67 20 62 69 | for inc|oming bi|
|000033e0| 6e 61 72 79 20 74 72 61 | 6e 73 66 65 72 73 2e 20 |nary tra|nsfers. |
|000033f0| 49 6e 20 74 68 69 73 20 | 63 61 73 65 2c 20 61 20 |In this |case, a |
|00003400| 73 65 70 61 72 61 74 65 | 20 76 61 72 69 61 62 6c |separate| variabl|
|00003410| 65 0a 60 65 66 73 2d 69 | 6e 63 6f 6d 69 6e 67 2d |e.`efs-i|ncoming-|
|00003420| 62 69 6e 61 72 79 2d 68 | 6d 2d 73 69 7a 65 27 20 |binary-h|m-size' |
|00003430| 63 61 6e 20 62 65 20 75 | 73 65 64 20 74 6f 20 73 |can be u|sed to s|
|00003440| 65 74 20 61 20 64 65 66 | 61 75 6c 74 20 76 61 6c |et a def|ault val|
|00003450| 75 65 20 6f 66 20 74 68 | 65 0a 68 61 73 68 20 6d |ue of th|e.hash m|
|00003460| 61 72 6b 20 73 69 7a 65 | 20 66 6f 72 20 69 6e 63 |ark size| for inc|
|00003470| 6f 6d 69 6e 67 20 62 69 | 6e 61 72 79 20 74 72 61 |oming bi|nary tra|
|00003480| 6e 73 66 65 72 73 2e 1f | 0a 28 64 65 66 76 61 72 |nsfers..|.(defvar|
|00003490| 20 65 66 73 2d 68 61 73 | 68 2d 6d 61 72 6b 2d 73 | efs-has|h-mark-s|
|000034a0| 69 7a 65 20 6e 69 6c 20 | 28 23 24 20 2e 20 2d 31 |ize nil |(#$ . -1|
|000034b0| 32 36 38 38 29 29 0a 23 | 40 32 30 32 20 2a 44 65 |2688)).#|@202 *De|
|000034c0| 66 61 75 6c 74 20 68 61 | 73 68 20 6d 61 72 6b 20 |fault ha|sh mark |
|000034d0| 73 69 7a 65 20 66 6f 72 | 20 69 6e 63 6f 6d 69 6e |size for| incomin|
|000034e0| 67 20 62 69 6e 61 72 79 | 20 74 72 61 6e 73 66 65 |g binary| transfe|
|000034f0| 72 73 2e 0a 49 66 20 74 | 68 69 73 20 69 73 20 6e |rs..If t|his is n|
|00003500| 69 6c 2c 20 69 6e 63 6f | 6d 69 6e 67 20 62 69 6e |il, inco|ming bin|
|00003510| 61 72 79 20 74 72 61 6e | 73 66 65 72 73 20 77 69 |ary tran|sfers wi|
|00003520| 6c 6c 20 75 73 65 20 60 | 65 66 73 2d 68 61 73 68 |ll use `|efs-hash|
|00003530| 2d 6d 61 72 6b 2d 73 69 | 7a 65 27 20 61 73 20 0a |-mark-si|ze' as .|
|00003540| 74 68 65 20 64 65 66 61 | 75 6c 74 2e 20 53 65 65 |the defa|ult. See|
|00003550| 20 74 68 65 20 64 6f 63 | 75 6d 65 6e 74 61 74 69 | the doc|umentati|
|00003560| 6f 6e 20 6f 66 20 74 68 | 69 73 20 76 61 72 69 61 |on of th|is varia|
|00003570| 62 6c 65 20 66 6f 72 20 | 6d 6f 72 65 20 64 65 74 |ble for |more det|
|00003580| 61 69 6c 73 2e 1f 0a 28 | 64 65 66 76 61 72 20 65 |ails...(|defvar e|
|00003590| 66 73 2d 69 6e 63 6f 6d | 69 6e 67 2d 62 69 6e 61 |fs-incom|ing-bina|
|000035a0| 72 79 2d 68 6d 2d 73 69 | 7a 65 20 6e 69 6c 20 28 |ry-hm-si|ze nil (|
|000035b0| 23 24 20 2e 20 2d 31 33 | 35 30 31 29 29 0a 23 40 |#$ . -13|501)).#@|
|000035c0| 32 32 31 20 2a 49 66 20 | 6e 6f 6e 2d 4e 49 4c 20 |221 *If |non-NIL |
|000035d0| 74 68 65 6e 20 62 65 20 | 63 68 61 74 74 79 20 61 |then be |chatty a|
|000035e0| 62 6f 75 74 20 69 6e 74 | 65 72 61 63 74 69 6f 6e |bout int|eraction|
|000035f0| 20 77 69 74 68 20 74 68 | 65 20 46 54 50 20 70 72 | with th|e FTP pr|
|00003600| 6f 63 65 73 73 2e 0a 49 | 66 20 30 20 64 6f 20 6e |ocess..I|f 0 do n|
|00003610| 6f 74 20 67 69 76 65 20 | 25 20 74 72 61 6e 73 66 |ot give |% transf|
|00003620| 65 72 72 65 64 20 72 65 | 70 6f 72 74 73 20 66 6f |erred re|ports fo|
|00003630| 72 20 61 73 79 6e 63 68 | 72 6f 6e 6f 75 73 20 63 |r asynch|ronous c|
|00003640| 6f 6d 6d 61 6e 64 73 20 | 61 6e 64 20 73 74 61 74 |ommands |and stat|
|00003650| 75 73 0a 72 65 70 6f 72 | 74 73 20 66 6f 72 20 63 |us.repor|ts for c|
|00003660| 6f 6d 6d 61 6e 64 73 20 | 76 65 72 69 66 79 69 6e |ommands |verifyin|
|00003670| 67 20 66 69 6c 65 20 6d | 6f 64 74 69 6d 65 73 2c |g file m|odtimes,|
|00003680| 20 62 75 74 20 72 65 70 | 6f 72 74 20 6f 6e 20 65 | but rep|ort on e|
|00003690| 76 65 72 79 74 68 69 6e | 67 20 65 6c 73 65 2e 1f |verythin|g else..|
|000036a0| 0a 28 64 65 66 76 61 72 | 20 65 66 73 2d 76 65 72 |.(defvar| efs-ver|
|000036b0| 62 6f 73 65 20 74 20 28 | 23 24 20 2e 20 2d 31 33 |bose t (|#$ . -13|
|000036c0| 37 36 34 29 29 0a 23 40 | 31 36 30 20 2a 44 65 66 |764)).#@|160 *Def|
|000036d0| 69 6e 65 73 20 74 68 65 | 20 6d 69 6e 69 6d 75 6d |ines the| minimum|
|000036e0| 20 74 69 6d 65 20 69 6e | 20 73 65 63 6f 6e 64 73 | time in| seconds|
|000036f0| 20 62 65 74 77 65 65 6e | 20 73 74 61 74 75 73 20 | between| status |
|00003700| 6d 65 73 73 61 67 65 73 | 2e 0a 41 20 6e 65 77 20 |messages|..A new |
|00003710| 73 74 61 74 75 73 20 6d | 65 73 73 61 67 65 20 69 |status m|essage i|
|00003720| 73 20 6e 6f 74 20 64 69 | 73 70 6c 61 79 65 64 2c |s not di|splayed,|
|00003730| 20 69 66 20 6f 6e 65 20 | 68 61 73 20 61 6c 72 65 | if one |has alre|
|00003740| 61 64 79 20 62 65 65 6e | 20 67 69 76 65 6e 0a 77 |ady been| given.w|
|00003750| 69 74 68 69 6e 20 74 68 | 69 73 20 70 65 72 69 6f |ithin th|is perio|
|00003760| 64 20 6f 66 20 74 69 6d | 65 2e 1f 0a 28 64 65 66 |d of tim|e...(def|
|00003770| 76 61 72 20 65 66 73 2d | 6d 65 73 73 61 67 65 2d |var efs-|message-|
|00003780| 69 6e 74 65 72 76 61 6c | 20 30 20 28 23 24 20 2e |interval| 0 (#$ .|
|00003790| 20 2d 31 34 30 32 38 29 | 29 0a 23 40 31 39 31 20 | -14028)|).#@191 |
|000037a0| 2a 4d 61 78 69 6d 75 6d | 20 73 69 7a 65 20 69 6e |*Maximum| size in|
|000037b0| 20 63 68 61 72 61 63 74 | 65 72 73 20 6f 66 20 46 | charact|ers of F|
|000037c0| 54 50 20 70 72 6f 63 65 | 73 73 20 62 75 66 66 65 |TP proce|ss buffe|
|000037d0| 72 2c 20 62 65 66 6f 72 | 65 20 69 74 20 69 73 20 |r, befor|e it is |
|000037e0| 74 72 69 6d 6d 65 64 2e | 0a 54 68 65 20 62 75 66 |trimmed.|.The buf|
|000037f0| 66 65 72 20 69 73 20 74 | 72 69 6d 6d 65 64 20 74 |fer is t|rimmed t|
|00003800| 6f 20 61 70 70 72 6f 78 | 69 6d 61 74 65 6c 79 20 |o approx|imately |
|00003810| 68 61 6c 66 20 74 68 69 | 73 20 73 69 7a 65 2e 20 |half thi|s size. |
|00003820| 53 65 74 74 69 6e 67 20 | 74 68 69 73 20 74 6f 20 |Setting |this to |
|00003830| 6e 69 6c 0a 69 6e 68 69 | 62 69 74 73 20 74 72 69 |nil.inhi|bits tri|
|00003840| 6d 6d 69 6e 67 20 6f 66 | 20 46 54 50 20 70 72 6f |mming of| FTP pro|
|00003850| 63 65 73 73 20 62 75 66 | 66 65 72 73 2e 1f 0a 28 |cess buf|fers...(|
|00003860| 64 65 66 76 61 72 20 65 | 66 73 2d 6d 61 78 2d 66 |defvar e|fs-max-f|
|00003870| 74 70 2d 62 75 66 66 65 | 72 2d 73 69 7a 65 20 33 |tp-buffe|r-size 3|
|00003880| 30 30 30 20 28 23 24 20 | 2e 20 2d 31 34 32 34 30 |000 (#$ |. -14240|
|00003890| 29 29 0a 23 40 36 39 20 | 2a 4d 61 78 69 6d 75 6d |)).#@69 |*Maximum|
|000038a0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 64 69 72 65 63 | number |of direc|
|000038b0| 74 6f 72 79 20 6c 69 73 | 74 69 6e 67 73 20 74 6f |tory lis|tings to|
|000038c0| 20 62 65 20 63 61 63 68 | 65 64 20 69 6e 20 65 66 | be cach|ed in ef|
|000038d0| 73 2d 6c 73 2d 63 61 63 | 68 65 2e 1f 0a 28 64 65 |s-ls-cac|he...(de|
|000038e0| 66 76 61 72 20 65 66 73 | 2d 6c 73 2d 63 61 63 68 |fvar efs|-ls-cach|
|000038f0| 65 2d 6d 61 78 20 35 20 | 28 23 24 20 2e 20 2d 31 |e-max 5 |(#$ . -1|
|00003900| 34 34 38 38 29 29 0a 23 | 40 31 37 31 20 46 6f 72 |4488)).#|@171 For|
|00003910| 6d 61 74 20 73 74 72 69 | 6e 67 20 75 73 65 64 20 |mat stri|ng used |
|00003920| 74 6f 20 64 65 74 65 72 | 6d 69 6e 65 20 68 6f 77 |to deter|mine how|
|00003930| 20 46 54 50 20 61 63 74 | 69 76 69 74 79 20 69 73 | FTP act|ivity is|
|00003940| 20 73 68 6f 77 6e 20 6f | 6e 20 74 68 65 20 6d 6f | shown o|n the mo|
|00003950| 64 65 20 6c 69 6e 65 2e | 0a 49 74 20 69 73 20 70 |de line.|.It is p|
|00003960| 61 73 73 65 64 20 74 6f | 20 66 6f 72 6d 61 74 2c |assed to| format,|
|00003970| 20 77 69 74 68 20 73 65 | 63 6f 6e 64 20 61 72 67 | with se|cond arg|
|00003980| 75 6d 65 6e 74 20 74 68 | 65 20 6e 75 6d 62 65 72 |ument th|e number|
|00003990| 20 6f 66 20 61 63 74 69 | 76 65 20 46 54 50 0a 73 | of acti|ve FTP.s|
|000039a0| 65 73 73 69 6f 6e 73 20 | 61 73 20 61 6e 20 69 6e |essions |as an in|
|000039b0| 74 65 67 65 72 2e 1f 0a | 28 64 65 66 76 61 72 20 |teger...|(defvar |
|000039c0| 65 66 73 2d 6d 6f 64 65 | 2d 6c 69 6e 65 2d 66 6f |efs-mode|-line-fo|
|000039d0| 72 6d 61 74 20 22 20 66 | 74 70 28 25 64 29 22 20 |rmat " f|tp(%d)" |
|000039e0| 28 23 24 20 2e 20 31 34 | 36 30 35 29 29 0a 23 40 |(#$ . 14|605)).#@|
|000039f0| 37 36 20 49 66 20 6e 6f | 6e 2d 6e 69 6c 2c 20 73 |76 If no|n-nil, s|
|00003a00| 68 6f 77 20 74 68 65 20 | 73 79 73 74 65 6d 20 74 |how the |system t|
|00003a10| 79 70 65 20 6f 6e 20 74 | 68 65 20 6d 6f 64 65 20 |ype on t|he mode |
|00003a20| 6c 69 6e 65 20 6f 66 20 | 72 65 6d 6f 74 65 20 64 |line of |remote d|
|00003a30| 69 72 65 64 20 62 75 66 | 66 65 72 73 2e 1f 0a 28 |ired buf|fers...(|
|00003a40| 64 65 66 76 61 72 20 65 | 66 73 2d 73 68 6f 77 2d |defvar e|fs-show-|
|00003a50| 68 6f 73 74 2d 74 79 70 | 65 2d 69 6e 2d 64 69 72 |host-typ|e-in-dir|
|00003a60| 65 64 20 74 20 28 23 24 | 20 2e 20 31 34 38 33 35 |ed t (#$| . 14835|
|00003a70| 29 29 0a 23 40 31 32 38 | 20 46 75 6e 63 74 69 6f |)).#@128| Functio|
|00003a80| 6e 20 63 61 6c 6c 65 64 | 20 74 6f 20 69 6e 64 69 |n called| to indi|
|00003a90| 63 61 74 65 20 46 54 50 | 20 61 63 74 69 76 69 74 |cate FTP| activit|
|00003aa0| 79 2e 20 0a 49 74 20 6d | 75 73 74 20 68 61 76 65 |y. .It m|ust have|
|00003ab0| 20 65 78 61 63 74 6c 79 | 20 6f 6e 65 20 61 72 67 | exactly| one arg|
|00003ac0| 75 6d 65 6e 74 2c 20 74 | 68 65 20 6e 75 6d 62 65 |ument, t|he numbe|
|00003ad0| 72 20 6f 66 20 61 63 74 | 69 76 65 20 46 54 50 20 |r of act|ive FTP |
|00003ae0| 73 65 73 73 69 6f 6e 73 | 20 61 73 20 61 6e 0a 69 |sessions| as an.i|
|00003af0| 6e 74 65 67 65 72 2e 1f | 0a 28 64 65 66 76 61 72 |nteger..|.(defvar|
|00003b00| 20 65 66 73 2d 66 74 70 | 2d 61 63 74 69 76 69 74 | efs-ftp|-activit|
|00003b10| 79 2d 66 75 6e 63 74 69 | 6f 6e 20 6e 69 6c 20 28 |y-functi|on nil (|
|00003b20| 23 24 20 2e 20 31 34 39 | 36 39 29 29 0a 23 40 32 |#$ . 149|69)).#@2|
|00003b30| 39 20 4e 61 6d 65 20 6f | 66 20 46 54 50 20 70 72 |9 Name o|f FTP pr|
|00003b40| 6f 67 72 61 6d 20 74 6f | 20 72 75 6e 2e 1f 0a 28 |ogram to| run...(|
|00003b50| 64 65 66 76 61 72 20 65 | 66 73 2d 66 74 70 2d 70 |defvar e|fs-ftp-p|
|00003b60| 72 6f 67 72 61 6d 2d 6e | 61 6d 65 20 22 66 74 70 |rogram-n|ame "ftp|
|00003b70| 22 20 28 23 24 20 2e 20 | 31 35 31 35 34 29 29 0a |" (#$ . |15154)).|
|00003b80| 23 40 36 32 20 2a 41 20 | 6c 69 73 74 20 6f 66 20 |#@62 *A |list of |
|00003b90| 61 72 67 75 6d 65 6e 74 | 73 20 70 61 73 73 65 64 |argument|s passed|
|00003ba0| 20 74 6f 20 74 68 65 20 | 46 54 50 20 70 72 6f 67 | to the |FTP prog|
|00003bb0| 72 61 6d 20 77 68 65 6e | 20 73 74 61 72 74 65 64 |ram when| started|
|00003bc0| 2e 1f 0a 28 64 65 66 76 | 61 72 20 65 66 73 2d 66 |...(defv|ar efs-f|
|00003bd0| 74 70 2d 70 72 6f 67 72 | 61 6d 2d 61 72 67 73 20 |tp-progr|am-args |
|00003be0| 27 28 22 2d 69 22 20 22 | 2d 6e 22 20 22 2d 67 22 |'("-i" "|-n" "-g"|
|00003bf0| 20 22 2d 76 22 29 20 28 | 23 24 20 2e 20 2d 31 35 | "-v") (|#$ . -15|
|00003c00| 32 33 37 29 29 0a 23 40 | 36 31 20 2a 52 65 67 75 |237)).#@|61 *Regu|
|00003c10| 6c 61 72 20 65 78 70 72 | 65 73 73 69 6f 6e 20 74 |lar expr|ession t|
|00003c20| 6f 20 6d 61 74 63 68 20 | 74 68 65 20 70 72 6f 6d |o match |the prom|
|00003c30| 70 74 20 6f 66 20 79 6f | 75 72 20 46 54 50 20 63 |pt of yo|ur FTP c|
|00003c40| 6c 69 65 6e 74 2e 1f 0a | 28 64 65 66 76 61 72 20 |lient...|(defvar |
|00003c50| 65 66 73 2d 66 74 70 2d | 70 72 6f 6d 70 74 2d 72 |efs-ftp-|prompt-r|
|00003c60| 65 67 65 78 70 20 22 5e | 5c 5c 28 66 74 70 5c 5c |egexp "^|\\(ftp\\|
|00003c70| 7c 46 74 70 5c 5c 7c 46 | 54 50 5c 5c 29 3e 20 2a ||Ftp\\|F|TP\\)> *|
|00003c80| 22 20 28 23 24 20 2e 20 | 2d 31 35 33 37 31 29 29 |" (#$ . |-15371))|
|00003c90| 0a 23 40 35 32 20 2a 49 | 66 20 6e 6f 6e 2d 4e 49 |.#@52 *I|f non-NI|
|00003ca0| 4c 20 74 68 65 6e 20 61 | 20 73 74 72 69 6e 67 20 |L then a| string |
|00003cb0| 6e 61 6d 69 6e 67 20 6e | 73 6c 6f 6f 6b 75 70 20 |naming n|slookup |
|00003cc0| 70 72 6f 67 72 61 6d 2e | 1f 0a 28 64 65 66 76 61 |program.|..(defva|
|00003cd0| 72 20 65 66 73 2d 6e 73 | 6c 6f 6f 6b 75 70 2d 70 |r efs-ns|lookup-p|
|00003ce0| 72 6f 67 72 61 6d 20 22 | 6e 73 6c 6f 6f 6b 75 70 |rogram "|nslookup|
|00003cf0| 22 20 28 23 24 20 2e 20 | 2d 31 35 35 31 30 29 29 |" (#$ . |-15510))|
|00003d00| 0a 23 40 37 35 20 2a 49 | 66 20 6e 6f 6e 2d 4e 49 |.#@75 *I|f non-NI|
|00003d10| 4c 20 74 68 65 6e 20 75 | 73 65 20 6e 73 6c 6f 6f |L then u|se nsloo|
|00003d20| 6b 75 70 20 74 6f 20 72 | 65 73 6f 6c 76 65 20 74 |kup to r|esolve t|
|00003d30| 68 65 20 68 6f 73 74 20 | 6e 61 6d 65 20 62 65 66 |he host |name bef|
|00003d40| 6f 72 65 20 63 6f 6e 6e | 65 63 74 69 6e 67 2e 1f |ore conn|ecting..|
|00003d50| 0a 28 64 65 66 76 61 72 | 20 65 66 73 2d 6e 73 6c |.(defvar| efs-nsl|
|00003d60| 6f 6f 6b 75 70 2d 6f 6e | 2d 63 6f 6e 6e 65 63 74 |ookup-on|-connect|
|00003d70| 20 6e 69 6c 20 28 23 24 | 20 2e 20 2d 31 35 36 32 | nil (#$| . -1562|
|00003d80| 32 29 29 0a 23 40 32 38 | 30 20 48 6f 77 20 6d 61 |2)).#@28|0 How ma|
|00003d90| 6e 79 20 69 74 65 72 61 | 74 69 6f 6e 73 20 65 66 |ny itera|tions ef|
|00003da0| 73 20 77 61 69 74 73 20 | 6f 6e 20 74 68 65 20 6e |s waits |on the n|
|00003db0| 73 6c 6f 6f 6b 75 70 20 | 70 72 6f 67 72 61 6d 2e |slookup |program.|
|00003dc0| 0a 41 70 70 6c 69 65 73 | 20 77 68 65 6e 20 6e 73 |.Applies| when ns|
|00003dd0| 6c 6f 6f 6b 75 70 20 69 | 73 20 75 73 65 64 20 74 |lookup i|s used t|
|00003de0| 6f 20 63 6f 6d 70 75 74 | 65 20 61 20 66 75 6c 6c |o comput|e a full|
|00003df0| 79 20 71 75 61 6c 69 66 | 69 65 64 20 64 6f 6d 61 |y qualif|ied doma|
|00003e00| 69 6e 20 6e 61 6d 65 0a | 66 6f 72 20 74 68 65 20 |in name.|for the |
|00003e10| 6c 6f 63 61 6c 20 68 6f | 73 74 2c 20 69 6e 20 74 |local ho|st, in t|
|00003e20| 68 65 20 63 61 73 65 20 | 77 68 65 6e 20 60 73 79 |he case |when `sy|
|00003e30| 73 74 65 6d 2d 6e 61 6d | 65 27 20 64 6f 65 73 20 |stem-nam|e' does |
|00003e40| 6e 6f 74 20 72 65 74 75 | 72 6e 20 6f 6e 65 2e 0a |not retu|rn one..|
|00003e50| 49 66 20 79 6f 75 20 73 | 65 74 20 74 68 69 73 20 |If you s|et this |
|00003e60| 74 6f 20 6e 69 6c 2c 20 | 65 66 73 20 77 69 6c 6c |to nil, |efs will|
|00003e70| 20 77 61 69 74 20 61 6e | 20 61 72 62 69 74 72 61 | wait an| arbitra|
|00003e80| 72 79 20 61 6d 6f 75 6e | 74 20 6f 66 20 74 69 6d |ry amoun|t of tim|
|00003e90| 65 20 74 6f 20 67 65 74 | 0a 6f 75 74 70 75 74 2e |e to get|.output.|
|00003ea0| 1f 0a 28 64 65 66 76 61 | 72 20 65 66 73 2d 6e 73 |..(defva|r efs-ns|
|00003eb0| 6c 6f 6f 6b 75 70 2d 74 | 68 72 65 73 68 6f 6c 64 |lookup-t|hreshold|
|00003ec0| 20 31 30 30 30 20 28 23 | 24 20 2e 20 31 35 37 35 | 1000 (#|$ . 1575|
|00003ed0| 34 29 29 0a 23 40 32 37 | 20 52 65 6d 6f 74 65 20 |4)).#@27| Remote |
|00003ee0| 73 68 65 6c 6c 20 75 73 | 65 64 20 62 79 20 65 66 |shell us|ed by ef|
|00003ef0| 73 2e 1f 0a 28 64 65 66 | 76 61 72 20 65 66 73 2d |s...(def|var efs-|
|00003f00| 72 65 6d 6f 74 65 2d 73 | 68 65 6c 6c 2d 66 69 6c |remote-s|hell-fil|
|00003f10| 65 2d 6e 61 6d 65 20 28 | 62 79 74 65 2d 63 6f 64 |e-name (|byte-cod|
|00003f20| 65 20 22 08 c1 73 ab 82 | c2 87 c3 87 22 20 5b 73 |e "..s..|...." [s|
|00003f30| 79 73 74 65 6d 2d 74 79 | 70 65 20 28 68 70 75 78 |ystem-ty|pe (hpux|
|00003f40| 20 75 73 67 2d 75 6e 69 | 78 2d 76 29 20 22 72 65 | usg-uni|x-v) "re|
|00003f50| 6d 73 68 22 20 22 72 73 | 68 22 5d 20 32 29 20 28 |msh" "rs|h"] 2) (|
|00003f60| 23 24 20 2e 20 31 36 30 | 38 39 29 29 0a 23 40 36 |#$ . 160|89)).#@6|
|00003f70| 32 20 53 65 74 20 74 6f | 20 6e 6f 6e 2d 6e 69 6c |2 Set to| non-nil|
|00003f80| 20 69 66 20 79 6f 75 72 | 20 72 65 6d 6f 74 65 20 | if your| remote |
|00003f90| 73 68 65 6c 6c 20 63 6f | 6d 6d 61 6e 64 20 74 61 |shell co|mmand ta|
|00003fa0| 6b 65 73 20 22 2d 6c 20 | 55 53 45 52 22 2e 1f 0a |kes "-l |USER"...|
|00003fb0| 28 64 65 66 76 61 72 20 | 65 66 73 2d 72 65 6d 6f |(defvar |efs-remo|
|00003fc0| 74 65 2d 73 68 65 6c 6c | 2d 74 61 6b 65 73 2d 75 |te-shell|-takes-u|
|00003fd0| 73 65 72 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |ser (byt|e-code "|
|00003fe0| 08 c1 73 3f 3f 87 22 20 | 5b 73 79 73 74 65 6d 2d |..s??." |[system-|
|00003ff0| 74 79 70 65 20 28 61 69 | 78 20 61 69 78 2d 76 33 |type (ai|x aix-v3|
|00004000| 20 68 70 75 78 20 73 69 | 6c 69 63 6f 6e 2d 67 72 | hpux si|licon-gr|
|00004010| 61 70 68 69 63 73 2d 75 | 6e 69 78 20 62 65 72 6b |aphics-u|nix berk|
|00004020| 65 6c 65 79 2d 75 6e 69 | 78 29 5d 20 32 29 20 28 |eley-uni|x)] 2) (|
|00004030| 23 24 20 2e 20 31 36 32 | 34 32 29 29 0a 23 40 32 |#$ . 162|42)).#@2|
|00004040| 36 31 20 2a 41 20 6c 69 | 73 74 20 6f 66 20 6f 70 |61 *A li|st of op|
|00004050| 65 72 61 74 69 6e 67 20 | 73 79 73 74 65 6d 73 20 |erating |systems |
|00004060| 66 6f 72 20 77 68 69 63 | 68 20 65 66 73 20 77 69 |for whic|h efs wi|
|00004070| 6c 6c 20 6d 61 6b 65 20 | 45 6d 61 63 73 20 62 61 |ll make |Emacs ba|
|00004080| 63 6b 75 70 20 66 69 6c | 65 73 2e 0a 54 68 65 20 |ckup fil|es..The |
|00004090| 62 61 63 6b 75 70 20 66 | 69 6c 65 73 20 61 72 65 |backup f|iles are|
|000040a0| 20 6d 61 64 65 20 6f 6e | 20 74 68 65 20 72 65 6d | made on| the rem|
|000040b0| 6f 74 65 20 68 6f 73 74 | 2e 0a 0a 46 6f 72 20 65 |ote host|...For e|
|000040c0| 78 61 6d 70 6c 65 3a 0a | 27 28 75 6e 69 78 20 73 |xample:.|'(unix s|
|000040d0| 79 73 56 2d 75 6e 69 78 | 20 62 73 64 2d 75 6e 69 |ysV-unix| bsd-uni|
|000040e0| 78 20 61 70 6f 6c 6c 6f | 2d 75 6e 69 78 20 64 75 |x apollo|-unix du|
|000040f0| 6d 62 2d 75 6e 69 78 29 | 20 6d 61 6b 65 73 20 73 |mb-unix)| makes s|
|00004100| 65 6e 73 65 2c 20 62 75 | 74 0a 27 28 75 6e 69 78 |ense, bu|t.'(unix|
|00004110| 20 76 6d 73 29 20 77 6f | 75 6c 64 20 62 65 20 73 | vms) wo|uld be s|
|00004120| 69 6c 6c 79 2c 20 73 69 | 6e 63 65 20 76 6d 73 20 |illy, si|nce vms |
|00004130| 6d 61 6b 65 73 20 69 74 | 73 20 6f 77 6e 20 62 61 |makes it|s own ba|
|00004140| 63 6b 75 70 73 2e 1f 0a | 28 64 65 66 76 61 72 20 |ckups...|(defvar |
|00004150| 65 66 73 2d 6d 61 6b 65 | 2d 62 61 63 6b 75 70 2d |efs-make|-backup-|
|00004160| 66 69 6c 65 73 20 65 66 | 73 2d 75 6e 69 78 2d 68 |files ef|s-unix-h|
|00004170| 6f 73 74 2d 74 79 70 65 | 73 20 28 23 24 20 2e 20 |ost-type|s (#$ . |
|00004180| 2d 31 36 34 35 31 29 29 | 0a 23 40 32 33 39 20 2a |-16451))|.#@239 *|
|00004190| 56 65 72 73 69 6f 6e 20 | 6f 66 20 60 62 61 63 6b |Version |of `back|
|000041a0| 75 70 20 62 79 20 63 6f | 70 79 69 6e 67 27 20 66 |up by co|pying' f|
|000041b0| 6f 72 20 72 65 6d 6f 74 | 65 20 66 69 6c 65 73 2e |or remot|e files.|
|000041c0| 0a 49 66 20 6e 6f 6e 2d | 6e 69 6c 2c 20 72 65 6d |.If non-|nil, rem|
|000041d0| 6f 74 65 20 66 69 6c 65 | 73 20 77 69 6c 6c 20 62 |ote file|s will b|
|000041e0| 65 20 62 61 63 6b 65 64 | 20 75 70 20 62 79 20 63 |e backed| up by c|
|000041f0| 6f 70 79 69 6e 67 2c 20 | 69 6e 73 74 65 61 64 20 |opying, |instead |
|00004200| 6f 66 20 62 79 20 72 65 | 6e 61 6d 69 6e 67 2e 0a |of by re|naming..|
|00004210| 4e 6f 74 65 20 74 68 65 | 20 63 6f 70 79 69 6e 67 |Note the| copying|
|00004220| 20 77 69 6c 6c 20 62 65 | 20 64 6f 6e 65 20 62 79 | will be| done by|
|00004230| 20 6d 6f 76 69 6e 67 20 | 74 68 65 20 66 69 6c 65 | moving |the file|
|00004240| 20 74 68 72 6f 75 67 68 | 20 74 68 65 20 6c 6f 63 | through| the loc|
|00004250| 61 6c 20 68 6f 73 74 20 | 2d 2d 20 61 20 0a 76 65 |al host |-- a .ve|
|00004260| 72 79 20 74 69 6d 65 20 | 63 6f 6e 73 75 6d 69 6e |ry time |consumin|
|00004270| 67 20 6f 70 65 72 61 74 | 69 6f 6e 2e 1f 0a 28 64 |g operat|ion...(d|
|00004280| 65 66 76 61 72 20 65 66 | 73 2d 62 61 63 6b 75 70 |efvar ef|s-backup|
|00004290| 2d 62 79 2d 63 6f 70 79 | 69 6e 67 20 6e 69 6c 20 |-by-copy|ing nil |
|000042a0| 28 23 24 20 2e 20 2d 31 | 36 37 38 33 29 29 0a 23 |(#$ . -1|6783)).#|
|000042b0| 40 31 31 33 20 2a 49 66 | 20 31 2c 20 61 6c 6c 6f |@113 *If| 1, allo|
|000042c0| 77 73 20 65 66 73 20 66 | 69 6c 65 73 20 74 6f 20 |ws efs f|iles to |
|000042d0| 62 65 20 61 75 74 6f 2d | 73 61 76 65 64 2e 0a 49 |be auto-|saved..I|
|000042e0| 66 20 30 2c 20 73 75 70 | 70 72 65 73 73 65 73 20 |f 0, sup|presses |
|000042f0| 61 75 74 6f 2d 73 61 76 | 69 6e 67 20 6f 66 20 65 |auto-sav|ing of e|
|00004300| 66 73 20 66 69 6c 65 73 | 2e 0a 44 6f 6e 27 74 20 |fs files|..Don't |
|00004310| 75 73 65 20 61 6e 79 20 | 6f 74 68 65 72 20 76 61 |use any |other va|
|00004320| 6c 75 65 2e 1f 0a 28 64 | 65 66 76 61 72 20 65 66 |lue...(d|efvar ef|
|00004330| 73 2d 61 75 74 6f 2d 73 | 61 76 65 20 30 20 28 23 |s-auto-s|ave 0 (#|
|00004340| 24 20 2e 20 2d 31 37 30 | 37 37 29 29 0a 23 40 38 |$ . -170|77)).#@8|
|00004350| 31 30 20 2a 44 65 74 65 | 72 6d 69 6e 65 73 20 77 |10 *Dete|rmines w|
|00004360| 68 65 72 65 20 72 65 6d | 6f 74 65 20 66 69 6c 65 |here rem|ote file|
|00004370| 73 20 61 72 65 20 61 75 | 74 6f 2d 73 61 76 65 64 |s are au|to-saved|
|00004380| 2e 0a 0a 49 66 20 6e 69 | 6c 2c 20 61 75 74 6f 2d |...If ni|l, auto-|
|00004390| 73 61 76 65 73 20 66 6f | 72 20 72 65 6d 6f 74 65 |saves fo|r remote|
|000043a0| 20 66 69 6c 65 73 20 77 | 69 6c 6c 20 62 65 20 77 | files w|ill be w|
|000043b0| 72 69 74 74 65 6e 20 69 | 6e 20 60 61 75 74 6f 2d |ritten i|n `auto-|
|000043c0| 73 61 76 65 2d 64 69 72 | 65 63 74 6f 72 79 27 0a |save-dir|ectory'.|
|000043d0| 6f 72 20 60 61 75 74 6f | 2d 73 61 76 65 2d 64 69 |or `auto|-save-di|
|000043e0| 72 65 63 74 6f 72 79 2d | 66 61 6c 6c 62 61 63 6b |rectory-|fallback|
|000043f0| 27 20 69 66 20 74 68 69 | 73 20 69 73 6e 27 74 20 |' if thi|s isn't |
|00004400| 64 65 66 69 6e 65 64 2e | 0a 0a 49 66 20 6e 6f 6e |defined.|..If non|
|00004410| 2d 6e 69 6c 2c 20 63 61 | 75 73 65 73 20 74 68 65 |-nil, ca|uses the|
|00004420| 20 61 75 74 6f 2d 73 61 | 76 65 20 66 69 6c 65 20 | auto-sa|ve file |
|00004430| 66 6f 72 20 61 6e 20 65 | 66 73 20 66 69 6c 65 20 |for an e|fs file |
|00004440| 74 6f 20 62 65 20 77 72 | 69 74 74 65 6e 20 69 6e |to be wr|itten in|
|00004450| 0a 74 68 65 20 72 65 6d | 6f 74 65 20 64 69 72 65 |.the rem|ote dire|
|00004460| 63 74 6f 72 79 20 63 6f | 6e 74 61 69 6e 69 6e 67 |ctory co|ntaining|
|00004470| 20 74 68 65 20 66 69 6c | 65 2c 20 72 61 74 68 65 | the fil|e, rathe|
|00004480| 72 20 74 68 61 6e 20 69 | 6e 20 61 20 6c 6f 63 61 |r than i|n a loca|
|00004490| 6c 20 64 69 72 65 63 74 | 6f 72 79 2e 0a 46 6f 72 |l direct|ory..For|
|000044a0| 20 72 65 6d 6f 74 65 20 | 66 69 6c 65 73 2c 20 74 | remote |files, t|
|000044b0| 68 69 73 20 6f 76 65 72 | 72 69 64 65 73 20 61 20 |his over|rides a |
|000044c0| 6e 6f 6e 2d 6e 69 6c 20 | 60 61 75 74 6f 2d 73 61 |non-nil |`auto-sa|
|000044d0| 76 65 2d 64 69 72 65 63 | 74 6f 72 79 27 2e 20 4c |ve-direc|tory'. L|
|000044e0| 6f 63 61 6c 20 66 69 6c | 65 73 0a 61 72 65 20 75 |ocal fil|es.are u|
|000044f0| 6e 61 66 66 65 63 74 65 | 64 2e 20 49 66 20 79 6f |naffecte|d. If yo|
|00004500| 75 20 77 61 6e 74 20 74 | 6f 20 75 73 65 20 74 68 |u want t|o use th|
|00004510| 69 73 20 66 65 61 74 75 | 72 65 2c 20 79 6f 75 20 |is featu|re, you |
|00004520| 70 72 6f 62 61 62 6c 79 | 20 6f 6e 6c 79 20 77 61 |probably| only wa|
|00004530| 6e 74 20 74 6f 20 0a 73 | 65 74 20 74 68 69 73 20 |nt to .s|et this |
|00004540| 74 72 75 65 20 69 6e 20 | 61 20 66 65 77 20 62 75 |true in |a few bu|
|00004550| 66 66 65 72 73 2c 20 72 | 61 74 68 65 72 20 74 68 |ffers, r|ather th|
|00004560| 61 6e 20 67 6c 6f 62 61 | 6c 6c 79 2e 20 20 59 6f |an globa|lly. Yo|
|00004570| 75 20 6d 69 67 68 74 20 | 77 61 6e 74 20 74 6f 20 |u might |want to |
|00004580| 67 69 76 65 0a 65 61 63 | 68 20 62 75 66 66 65 72 |give.eac|h buffer|
|00004590| 20 69 74 73 20 6f 77 6e | 20 76 61 6c 75 65 20 75 | its own| value u|
|000045a0| 73 69 6e 67 20 60 6d 61 | 6b 65 2d 76 61 72 69 61 |sing `ma|ke-varia|
|000045b0| 62 6c 65 2d 62 75 66 66 | 65 72 2d 6c 6f 63 61 6c |ble-buff|er-local|
|000045c0| 27 2e 20 49 74 20 69 73 | 20 75 73 75 61 6c 6c 79 |'. It is| usually|
|000045d0| 0a 61 20 67 6f 6f 64 20 | 69 64 65 61 20 74 6f 20 |.a good |idea to |
|000045e0| 61 75 74 6f 2d 73 61 76 | 65 20 72 65 6d 6f 74 65 |auto-sav|e remote|
|000045f0| 20 66 69 6c 65 73 20 6c | 6f 63 61 6c 6c 79 2c 20 | files l|ocally, |
|00004600| 62 65 63 61 75 73 65 20 | 69 74 20 69 73 20 6e 6f |because |it is no|
|00004610| 74 20 6f 6e 6c 79 20 66 | 61 73 74 65 72 2c 0a 62 |t only f|aster,.b|
|00004620| 75 74 20 70 72 6f 76 69 | 64 65 73 20 70 72 6f 74 |ut provi|des prot|
|00004630| 65 63 74 69 6f 6e 20 61 | 67 61 69 6e 73 74 20 61 |ection a|gainst a|
|00004640| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 20 67 6f 69 6e | connect|ion goin|
|00004650| 67 20 64 6f 77 6e 2e 0a | 0a 53 65 65 20 61 6c 73 |g down..|.See als|
|00004660| 6f 20 76 61 72 69 61 62 | 6c 65 20 60 65 66 73 2d |o variab|le `efs-|
|00004670| 61 75 74 6f 2d 73 61 76 | 65 27 2e 1f 0a 28 64 65 |auto-sav|e'...(de|
|00004680| 66 76 61 72 20 65 66 73 | 2d 61 75 74 6f 2d 73 61 |fvar efs|-auto-sa|
|00004690| 76 65 2d 72 65 6d 6f 74 | 65 6c 79 20 6e 69 6c 20 |ve-remot|ely nil |
|000046a0| 28 23 24 20 2e 20 2d 31 | 37 32 33 35 29 29 0a 23 |(#$ . -1|7235)).#|
|000046b0| 40 36 37 20 2a 44 65 66 | 69 6e 65 73 20 77 68 65 |@67 *Def|ines whe|
|000046c0| 74 68 65 72 20 22 2f 2f | 22 20 73 68 6f 72 74 2d |ther "//|" short-|
|000046d0| 63 69 72 63 75 69 74 73 | 20 74 6f 20 74 68 65 20 |circuits| to the |
|000046e0| 72 65 6d 6f 74 65 20 6f | 72 20 6c 6f 63 61 6c 20 |remote o|r local |
|000046f0| 72 6f 6f 74 2e 1f 0a 28 | 64 65 66 76 61 72 20 65 |root...(|defvar e|
|00004700| 66 73 2d 73 68 6f 72 74 | 2d 63 69 72 63 75 69 74 |fs-short|-circuit|
|00004710| 2d 74 6f 2d 72 65 6d 6f | 74 65 2d 72 6f 6f 74 20 |-to-remo|te-root |
|00004720| 6e 69 6c 20 28 23 24 20 | 2e 20 2d 31 38 31 30 30 |nil (#$ |. -18100|
|00004730| 29 29 0a 23 40 31 34 35 | 20 2a 44 65 66 69 6e 65 |)).#@145| *Define|
|00004740| 73 20 77 68 65 74 68 65 | 72 20 74 68 65 20 6c 6f |s whethe|r the lo|
|00004750| 63 61 6c 20 6d 61 63 68 | 69 6e 65 20 69 73 20 61 |cal mach|ine is a|
|00004760| 6e 20 61 70 6f 6c 6c 6f | 20 72 75 6e 6e 69 6e 67 |n apollo| running|
|00004770| 20 44 6f 6d 61 69 6e 2e | 0a 54 68 69 73 20 76 61 | Domain.|.This va|
|00004780| 72 69 61 62 6c 65 20 68 | 61 73 20 6e 6f 74 68 69 |riable h|as nothi|
|00004790| 6e 67 20 74 6f 20 64 6f | 20 77 69 74 68 20 65 66 |ng to do| with ef|
|000047a0| 73 2c 20 61 6e 64 20 73 | 68 6f 75 6c 64 20 62 65 |s, and s|hould be|
|000047b0| 20 62 61 73 69 63 20 74 | 6f 20 61 6c 6c 20 0a 6f | basic t|o all .o|
|000047c0| 66 20 65 6d 61 63 73 2e | 1f 0a 28 64 65 66 76 61 |f emacs.|..(defva|
|000047d0| 72 20 65 66 73 2d 6c 6f | 63 61 6c 2d 61 70 6f 6c |r efs-lo|cal-apol|
|000047e0| 6c 6f 2d 75 6e 69 78 20 | 28 62 79 74 65 2d 63 6f |lo-unix |(byte-co|
|000047f0| 64 65 20 22 c0 c1 c2 c3 | 21 ae 86 c2 c4 21 ae 81 |de "....|!....!..|
|00004800| c5 5c 22 c6 61 87 22 20 | 5b 73 74 72 69 6e 67 2d |.\".a." |[string-|
|00004810| 6d 61 74 63 68 20 22 2f | 2f 22 20 67 65 74 65 6e |match "/|/" geten|
|00004820| 76 20 22 48 4f 4d 45 22 | 20 22 53 48 45 4c 4c 22 |v "HOME"| "SHELL"|
|00004830| 20 22 22 20 30 5d 20 34 | 29 20 28 23 24 20 2e 20 | "" 0] 4|) (#$ . |
|00004840| 2d 31 38 32 33 33 29 29 | 0a 23 40 33 32 20 2a 75 |-18233))|.#@32 *u|
|00004850| 6d 61 73 6b 20 74 6f 20 | 75 73 65 20 66 6f 72 20 |mask to |use for |
|00004860| 72 6f 6f 74 20 6c 6f 67 | 69 6e 73 2e 1f 0a 28 64 |root log|ins...(d|
|00004870| 65 66 76 61 72 20 65 66 | 73 2d 72 6f 6f 74 2d 75 |efvar ef|s-root-u|
|00004880| 6d 61 73 6b 20 6e 69 6c | 20 28 23 24 20 2e 20 2d |mask nil| (#$ . -|
|00004890| 31 38 35 31 30 29 29 0a | 23 40 33 37 20 2a 75 6d |18510)).|#@37 *um|
|000048a0| 61 73 6b 20 74 6f 20 75 | 73 65 20 66 6f 72 20 61 |ask to u|se for a|
|000048b0| 6e 6f 6e 79 6d 6f 75 73 | 20 6c 6f 67 69 6e 73 2e |nonymous| logins.|
|000048c0| 1f 0a 28 64 65 66 76 61 | 72 20 65 66 73 2d 61 6e |..(defva|r efs-an|
|000048d0| 6f 6e 79 6d 6f 75 73 2d | 75 6d 61 73 6b 20 6e 69 |onymous-|umask ni|
|000048e0| 6c 20 28 23 24 20 2e 20 | 2d 31 38 35 38 39 29 29 |l (#$ . |-18589))|
|000048f0| 0a 23 40 31 30 32 20 2a | 75 6d 61 73 6b 20 74 6f |.#@102 *|umask to|
|00004900| 20 75 73 65 20 66 6f 72 | 20 65 66 73 20 73 65 73 | use for| efs ses|
|00004910| 73 69 6f 6e 73 2e 0a 49 | 66 20 74 68 69 73 20 69 |sions..I|f this i|
|00004920| 73 20 6e 69 6c 2c 20 74 | 68 65 6e 20 74 68 65 20 |s nil, t|hen the |
|00004930| 73 65 74 74 69 6e 67 20 | 6f 66 20 75 6d 61 73 6b |setting |of umask|
|00004940| 20 6f 6e 20 74 68 65 20 | 6c 6f 63 61 6c 20 68 6f | on the |local ho|
|00004950| 73 74 20 69 73 20 75 73 | 65 64 2e 1f 0a 28 64 65 |st is us|ed...(de|
|00004960| 66 76 61 72 20 65 66 73 | 2d 75 6d 61 73 6b 20 6e |fvar efs|-umask n|
|00004970| 69 6c 20 28 23 24 20 2e | 20 2d 31 38 36 37 39 29 |il (#$ .| -18679)|
|00004980| 29 0a 23 40 31 35 39 20 | 2a 52 69 6e 67 20 74 68 |).#@159 |*Ring th|
|00004990| 65 20 62 65 6c 6c 20 69 | 66 20 74 68 65 20 75 6d |e bell i|f the um|
|000049a0| 61 73 6b 20 63 6f 6d 6d | 61 6e 64 20 66 61 69 6c |ask comm|and fail|
|000049b0| 73 20 6f 6e 20 61 20 75 | 6e 69 78 20 68 6f 73 74 |s on a u|nix host|
|000049c0| 2e 20 4d 61 6e 79 20 73 | 65 72 76 65 72 73 20 64 |. Many s|ervers d|
|000049d0| 6f 6e 27 74 0a 73 75 70 | 70 6f 72 74 20 74 68 69 |on't.sup|port thi|
|000049e0| 73 20 63 6f 6d 6d 61 6e | 64 2c 20 73 6f 20 69 66 |s comman|d, so if|
|000049f0| 20 79 6f 75 20 67 65 74 | 20 61 20 6c 6f 74 20 6f | you get| a lot o|
|00004a00| 66 20 61 6e 6e 6f 79 69 | 6e 67 20 66 61 69 6c 75 |f annoyi|ng failu|
|00004a10| 72 65 73 2c 20 73 65 74 | 20 74 68 69 73 0a 74 6f |res, set| this.to|
|00004a20| 20 6e 69 6c 2e 1f 0a 28 | 64 65 66 76 61 72 20 65 | nil...(|defvar e|
|00004a30| 66 73 2d 64 69 6e 67 2d | 6f 6e 2d 75 6d 61 73 6b |fs-ding-|on-umask|
|00004a40| 2d 66 61 69 6c 75 72 65 | 20 74 20 28 23 24 20 2e |-failure| t (#$ .|
|00004a50| 20 2d 31 38 38 32 34 29 | 29 0a 23 40 31 35 39 20 | -18824)|).#@159 |
|00004a60| 2a 52 69 6e 67 20 74 68 | 65 20 62 65 6c 6c 20 69 |*Ring th|e bell i|
|00004a70| 66 20 74 68 65 20 63 68 | 6d 6f 64 20 63 6f 6d 6d |f the ch|mod comm|
|00004a80| 61 6e 64 20 66 61 69 6c | 73 20 6f 6e 20 61 20 75 |and fail|s on a u|
|00004a90| 6e 69 78 20 68 6f 73 74 | 2e 20 53 6f 6d 65 20 73 |nix host|. Some s|
|00004aa0| 65 72 76 65 72 73 20 64 | 6f 6e 27 74 0a 73 75 70 |ervers d|on't.sup|
|00004ab0| 70 6f 72 74 20 74 68 69 | 73 20 63 6f 6d 6d 61 6e |port thi|s comman|
|00004ac0| 64 2c 20 73 6f 20 69 66 | 20 79 6f 75 20 67 65 74 |d, so if| you get|
|00004ad0| 20 61 20 6c 6f 74 20 6f | 66 20 61 6e 6e 6f 79 69 | a lot o|f annoyi|
|00004ae0| 6e 67 20 66 61 69 6c 75 | 72 65 73 2c 20 73 65 74 |ng failu|res, set|
|00004af0| 20 74 68 69 73 0a 74 6f | 20 6e 69 6c 2e 1f 0a 28 | this.to| nil...(|
|00004b00| 64 65 66 76 61 72 20 65 | 66 73 2d 64 69 6e 67 2d |defvar e|fs-ding-|
|00004b10| 6f 6e 2d 63 68 6d 6f 64 | 2d 66 61 69 6c 75 72 65 |on-chmod|-failure|
|00004b20| 20 74 20 28 23 24 20 2e | 20 2d 31 39 30 34 30 29 | t (#$ .| -19040)|
|00004b30| 29 0a 23 40 32 30 35 20 | 2a 46 54 50 20 63 6c 69 |).#@205 |*FTP cli|
|00004b40| 65 6e 74 20 63 6f 6d 6d | 61 6e 64 20 66 6f 72 20 |ent comm|and for |
|00004b50| 67 65 74 74 69 6e 67 20 | 61 20 62 72 69 65 66 20 |getting |a brief |
|00004b60| 6c 69 73 74 69 6e 67 20 | 28 4e 4c 53 54 29 20 66 |listing |(NLST) f|
|00004b70| 72 6f 6d 20 74 68 65 20 | 46 54 50 20 73 65 72 76 |rom the |FTP serv|
|00004b80| 65 72 2e 20 0a 57 65 20 | 74 72 79 20 74 6f 20 67 |er. .We |try to g|
|00004b90| 75 65 73 73 20 74 68 69 | 73 20 62 61 73 65 64 20 |uess thi|s based |
|00004ba0| 6f 6e 20 74 68 65 20 6c | 6f 63 61 6c 20 73 79 73 |on the l|ocal sys|
|00004bb0| 74 65 6d 2d 74 79 70 65 | 2c 20 62 75 74 20 6f 62 |tem-type|, but ob|
|00004bc0| 76 69 6f 75 73 6c 79 20 | 69 66 20 79 6f 75 0a 61 |viously |if you.a|
|00004bd0| 72 65 20 75 73 69 6e 67 | 20 61 20 67 61 74 65 77 |re using| a gatew|
|00004be0| 61 79 2c 20 79 6f 75 27 | 6c 6c 20 68 61 76 65 20 |ay, you'|ll have |
|00004bf0| 74 6f 20 73 65 74 20 69 | 74 20 79 6f 75 72 73 65 |to set i|t yourse|
|00004c00| 6c 66 2e 1f 0a 28 64 65 | 66 76 61 72 20 65 66 73 |lf...(de|fvar efs|
|00004c10| 2d 6e 6c 69 73 74 2d 63 | 6d 64 20 28 62 79 74 65 |-nlist-c|md (byte|
|00004c20| 2d 63 6f 64 65 20 22 08 | c1 61 ab 82 c2 87 08 c3 |-code ".|.a......|
|00004c30| 73 ab 82 c4 87 c2 87 22 | 20 5b 73 79 73 74 65 6d |s......"| [system|
|00004c40| 2d 74 79 70 65 20 62 65 | 72 6b 65 6c 65 79 2d 75 |-type be|rkeley-u|
|00004c50| 6e 69 78 20 22 6c 73 22 | 20 28 68 70 75 78 20 61 |nix "ls"| (hpux a|
|00004c60| 69 78 2d 76 33 20 73 69 | 6c 69 63 6f 6e 2d 67 72 |ix-v3 si|licon-gr|
|00004c70| 61 70 68 69 63 73 2d 75 | 6e 69 78 29 20 22 6e 6c |aphics-u|nix) "nl|
|00004c80| 69 73 74 22 5d 20 32 29 | 20 28 23 24 20 2e 20 2d |ist"] 2)| (#$ . -|
|00004c90| 31 39 32 35 36 29 29 0a | 23 40 35 31 30 20 2a 49 |19256)).|#@510 *I|
|00004ca0| 66 20 6e 6f 6e 2d 6e 69 | 6c 2c 20 60 62 75 66 66 |f non-ni|l, `buff|
|00004cb0| 65 72 2d 66 69 6c 65 2d | 74 72 75 65 6e 61 6d 65 |er-file-|truename|
|00004cc0| 27 20 77 69 6c 6c 20 62 | 65 20 63 6f 6d 70 75 74 |' will b|e comput|
|00004cd0| 65 64 20 66 6f 72 20 72 | 65 6d 6f 74 65 20 62 75 |ed for r|emote bu|
|00004ce0| 66 66 65 72 73 2e 0a 49 | 6e 20 65 6d 61 63 73 20 |ffers..I|n emacs |
|00004cf0| 31 39 2c 20 65 61 63 68 | 20 62 75 66 66 65 72 20 |19, each| buffer |
|00004d00| 68 61 73 20 61 20 6c 6f | 63 61 6c 20 76 61 72 69 |has a lo|cal vari|
|00004d10| 61 62 6c 65 2c 20 60 62 | 75 66 66 65 72 2d 66 69 |able, `b|uffer-fi|
|00004d20| 6c 65 2d 74 72 75 65 6e | 61 6d 65 27 2c 0a 77 68 |le-truen|ame',.wh|
|00004d30| 69 63 68 20 69 73 20 75 | 73 65 64 20 74 6f 20 65 |ich is u|sed to e|
|00004d40| 6e 73 75 72 65 20 74 68 | 61 74 20 73 79 6d 62 6f |nsure th|at symbo|
|00004d50| 6c 69 63 20 6c 69 6e 6b | 73 20 77 69 6c 6c 20 6e |lic link|s will n|
|00004d60| 6f 74 20 63 6f 6e 66 75 | 73 65 20 65 6d 61 63 73 |ot confu|se emacs|
|00004d70| 20 69 6e 74 6f 0a 76 69 | 73 69 74 69 6e 67 20 74 | into.vi|siting t|
|00004d80| 68 65 20 73 61 6d 65 20 | 66 69 6c 65 20 77 69 74 |he same |file wit|
|00004d90| 68 20 74 77 6f 20 62 75 | 66 66 65 72 73 2e 20 54 |h two bu|ffers. T|
|00004da0| 68 69 73 20 76 61 72 69 | 61 62 6c 65 20 69 73 20 |his vari|able is |
|00004db0| 63 6f 6d 70 75 74 65 64 | 20 62 79 0a 63 68 61 73 |computed| by.chas|
|00004dc0| 69 6e 67 20 61 6c 6c 20 | 73 79 6d 62 6f 6c 69 63 |ing all |symbolic|
|00004dd0| 20 6c 69 6e 6b 73 20 69 | 6e 20 60 62 75 66 66 65 | links i|n `buffe|
|00004de0| 72 2d 66 69 6c 65 2d 6e | 61 6d 65 27 2c 20 62 6f |r-file-n|ame', bo|
|00004df0| 74 68 20 61 74 20 74 68 | 65 20 6c 65 76 65 6c 20 |th at th|e level |
|00004e00| 6f 66 20 74 68 65 0a 66 | 69 6c 65 20 61 6e 64 20 |of the.f|ile and |
|00004e10| 61 74 20 74 68 65 20 6c | 65 76 65 6c 20 6f 66 20 |at the l|evel of |
|00004e20| 61 6c 6c 20 70 61 72 65 | 6e 74 20 64 69 72 65 63 |all pare|nt direc|
|00004e30| 74 6f 72 69 65 73 2e 20 | 53 69 6e 63 65 20 74 68 |tories. |Since th|
|00004e40| 69 73 20 6f 70 65 72 61 | 74 69 6f 6e 20 63 61 6e |is opera|tion can|
|00004e50| 20 62 65 0a 76 65 72 79 | 20 74 69 6d 65 2d 63 6f | be.very| time-co|
|00004e60| 6e 73 75 6d 69 6e 67 20 | 6f 76 65 72 20 46 54 50 |nsuming |over FTP|
|00004e70| 2c 20 74 68 69 73 20 76 | 61 72 69 61 62 6c 65 20 |, this v|ariable |
|00004e80| 63 61 6e 20 62 65 20 75 | 73 65 64 20 74 6f 20 69 |can be u|sed to i|
|00004e90| 6e 68 69 62 69 74 20 69 | 74 2e 1f 0a 28 64 65 66 |nhibit i|t...(def|
|00004ea0| 76 61 72 20 65 66 73 2d | 63 6f 6d 70 75 74 65 2d |var efs-|compute-|
|00004eb0| 72 65 6d 6f 74 65 2d 62 | 75 66 66 65 72 2d 66 69 |remote-b|uffer-fi|
|00004ec0| 6c 65 2d 74 72 75 65 6e | 61 6d 65 20 6e 69 6c 20 |le-truen|ame nil |
|00004ed0| 28 23 24 20 2e 20 2d 31 | 39 36 31 34 29 29 0a 23 |(#$ . -1|9614)).#|
|00004ee0| 40 33 34 30 20 2a 53 65 | 6c 65 63 74 73 20 74 68 |@340 *Se|lects th|
|00004ef0| 65 20 63 61 73 65 20 75 | 73 65 64 20 66 6f 72 20 |e case u|sed for |
|00004f00| 62 75 66 66 65 72 20 6e | 61 6d 65 73 20 6f 66 20 |buffer n|ames of |
|00004f10| 63 61 73 65 2d 69 6e 73 | 65 6e 73 69 74 69 76 65 |case-ins|ensitive|
|00004f20| 20 66 69 6c 65 20 6e 61 | 6d 65 73 2e 0a 43 61 73 | file na|mes..Cas|
|00004f30| 65 2d 69 6e 73 65 6e 73 | 69 74 69 76 65 20 66 69 |e-insens|itive fi|
|00004f40| 6c 65 20 6e 61 6d 65 73 | 20 61 72 65 20 66 69 6c |le names| are fil|
|00004f50| 65 73 20 6f 6e 20 68 6f | 73 74 73 20 77 68 6f 73 |es on ho|sts whos|
|00004f60| 65 20 68 6f 73 74 20 74 | 79 70 65 20 69 73 20 69 |e host t|ype is i|
|00004f70| 6e 0a 60 65 66 73 2d 63 | 61 73 65 2d 69 6e 73 65 |n.`efs-c|ase-inse|
|00004f80| 6e 73 69 74 69 76 65 2d | 68 6f 73 74 2d 74 79 70 |nsitive-|host-typ|
|00004f90| 65 73 27 2e 0a 0a 49 66 | 20 74 68 69 73 20 69 73 |es'...If| this is|
|00004fa0| 20 27 75 70 20 75 70 70 | 65 72 20 63 61 73 65 20 | 'up upp|er case |
|00004fb0| 69 73 20 75 73 65 64 2c | 20 69 66 20 69 74 20 69 |is used,| if it i|
|00004fc0| 73 20 27 64 6f 77 6e 20 | 6c 6f 77 65 72 20 63 61 |s 'down |lower ca|
|00004fd0| 73 65 20 69 73 20 75 73 | 65 64 2e 20 0a 49 66 20 |se is us|ed. .If |
|00004fe0| 74 68 69 73 20 68 61 73 | 20 61 6e 79 20 6f 74 68 |this has| any oth|
|00004ff0| 65 72 20 76 61 6c 75 65 | 2c 20 74 68 65 20 63 61 |er value|, the ca|
|00005000| 73 65 20 69 73 20 69 6e | 68 65 72 69 74 65 64 20 |se is in|herited |
|00005010| 66 72 6f 6d 20 74 68 65 | 20 6e 61 6d 65 20 75 73 |from the| name us|
|00005020| 65 64 20 0a 74 6f 20 61 | 63 63 65 73 73 20 74 68 |ed .to a|ccess th|
|00005030| 65 20 66 69 6c 65 2e 1f | 0a 28 64 65 66 76 61 72 |e file..|.(defvar|
|00005040| 20 65 66 73 2d 62 75 66 | 66 65 72 2d 6e 61 6d 65 | efs-buf|fer-name|
|00005050| 2d 63 61 73 65 20 6e 69 | 6c 20 28 23 24 20 2e 20 |-case ni|l (#$ . |
|00005060| 2d 32 30 31 39 37 29 29 | 0a 23 40 34 32 30 20 46 |-20197))|.#@420 F|
|00005070| 6f 72 6d 61 74 20 75 73 | 65 64 20 74 6f 20 63 6f |ormat us|ed to co|
|00005080| 6d 70 75 74 65 20 6e 61 | 6d 65 73 20 6f 66 20 62 |mpute na|mes of b|
|00005090| 75 66 66 65 72 73 20 61 | 74 74 61 63 68 65 64 20 |uffers a|ttached |
|000050a0| 74 6f 20 72 65 6d 6f 74 | 65 20 66 69 6c 65 73 2e |to remot|e files.|
|000050b0| 0a 0a 49 66 20 74 68 69 | 73 20 69 73 20 6e 69 6c |..If thi|s is nil|
|000050c0| 2c 20 62 75 66 66 65 72 | 20 6e 61 6d 65 73 20 61 |, buffer| names a|
|000050d0| 72 65 20 63 6f 6d 70 75 | 74 65 64 20 69 6e 20 74 |re compu|ted in t|
|000050e0| 68 65 20 75 73 75 61 6c | 20 77 61 79 2e 0a 0a 49 |he usual| way...I|
|000050f0| 66 20 69 74 20 69 73 20 | 61 20 73 74 72 69 6e 67 |f it is |a string|
|00005100| 2c 20 74 68 65 6e 20 74 | 68 65 20 69 74 20 69 73 |, then t|he it is|
|00005110| 20 70 61 73 73 65 64 20 | 74 6f 20 66 6f 72 6d 61 | passed |to forma|
|00005120| 74 20 77 69 74 68 20 73 | 65 63 6f 6e 64 20 61 6e |t with s|econd an|
|00005130| 64 20 74 68 69 72 64 0a | 61 72 67 75 6d 65 6e 74 |d third.|argument|
|00005140| 73 20 74 68 65 20 68 6f | 73 74 20 6e 61 6d 65 20 |s the ho|st name |
|00005150| 61 6e 64 20 66 69 6c 65 | 20 6e 61 6d 65 2e 0a 0a |and file| name...|
|00005160| 4f 74 68 65 72 77 69 73 | 65 2c 20 69 74 20 69 73 |Otherwis|e, it is|
|00005170| 20 61 73 73 75 6d 65 64 | 20 74 6f 20 62 65 20 66 | assumed| to be f|
|00005180| 75 6e 63 74 69 6f 6e 20 | 74 61 6b 69 6e 67 20 74 |unction |taking t|
|00005190| 68 72 65 65 20 61 72 67 | 75 6d 65 6e 74 73 2c 20 |hree arg|uments, |
|000051a0| 74 68 65 20 68 6f 73 74 | 20 6e 61 6d 65 2c 0a 74 |the host| name,.t|
|000051b0| 68 65 20 75 73 65 72 20 | 6e 61 6d 65 2c 20 61 6e |he user |name, an|
|000051c0| 64 20 74 68 65 20 74 72 | 75 6e 63 61 74 65 64 20 |d the tr|uncated |
|000051d0| 66 69 6c 65 20 6e 61 6d | 65 2e 20 20 49 74 20 73 |file nam|e. It s|
|000051e0| 68 6f 75 6c 64 20 72 65 | 74 75 72 6e 73 20 74 68 |hould re|turns th|
|000051f0| 65 20 6e 61 6d 65 20 74 | 6f 0a 62 65 20 75 73 65 |e name t|o.be use|
|00005200| 64 20 66 6f 72 20 74 68 | 65 20 62 75 66 66 65 72 |d for th|e buffer|
|00005210| 2e 1f 0a 28 64 65 66 76 | 61 72 20 65 66 73 2d 66 |...(defv|ar efs-f|
|00005220| 61 6e 63 79 2d 62 75 66 | 66 65 72 2d 6e 61 6d 65 |ancy-buf|fer-name|
|00005230| 73 20 22 25 73 40 25 73 | 22 20 28 23 24 20 2e 20 |s "%s@%s|" (#$ . |
|00005240| 32 30 35 39 31 29 29 0a | 23 40 33 30 37 20 2a 44 |20591)).|#@307 *D|
|00005250| 65 74 65 72 6d 69 6e 65 | 73 20 69 66 20 65 66 73 |etermine|s if efs|
|00005260| 20 63 68 65 63 6b 73 20 | 6d 6f 64 74 69 6d 65 73 | checks |modtimes|
|00005270| 20 66 6f 72 20 72 65 6d | 6f 74 65 20 66 69 6c 65 | for rem|ote file|
|00005280| 73 20 6f 6e 20 61 6e 6f | 6e 79 6d 6f 75 73 20 6c |s on ano|nymous l|
|00005290| 6f 67 69 6e 73 2e 0a 49 | 66 20 6e 6f 6e 2d 6e 69 |ogins..I|f non-ni|
|000052a0| 6c 2c 20 65 66 73 20 72 | 75 6e 73 20 60 76 65 72 |l, efs r|uns `ver|
|000052b0| 69 66 79 2d 76 69 73 69 | 74 65 64 2d 66 69 6c 65 |ify-visi|ted-file|
|000052c0| 2d 6d 6f 64 74 69 6d 65 | 27 20 66 6f 72 20 72 65 |-modtime|' for re|
|000052d0| 6d 6f 74 65 20 66 69 6c | 65 73 20 6f 6e 20 0a 61 |mote fil|es on .a|
|000052e0| 6e 6f 6e 79 6d 6f 75 73 | 20 66 74 70 20 6c 6f 67 |nonymous| ftp log|
|000052f0| 69 6e 73 2e 20 53 69 6e | 63 65 20 76 65 72 69 66 |ins. Sin|ce verif|
|00005300| 79 2d 76 69 73 69 74 65 | 64 2d 66 69 6c 65 2d 6d |y-visite|d-file-m|
|00005310| 6f 64 74 69 6d 65 20 73 | 6c 6f 77 73 20 74 68 69 |odtime s|lows thi|
|00005320| 6e 67 73 20 64 6f 77 6e | 2c 0a 61 6e 64 20 6d 6f |ngs down|,.and mo|
|00005330| 73 74 20 70 65 6f 70 6c | 65 20 61 72 65 6e 27 74 |st peopl|e aren't|
|00005340| 20 65 64 69 74 69 6e 67 | 20 66 69 6c 65 73 20 6f | editing| files o|
|00005350| 6e 20 61 6e 6f 6e 79 6d | 6f 75 73 20 66 74 70 20 |n anonym|ous ftp |
|00005360| 6c 6f 67 69 6e 73 2c 20 | 74 68 69 73 20 69 73 20 |logins, |this is |
|00005370| 6e 69 6c 0a 62 79 20 64 | 65 66 61 75 6c 74 2e 1f |nil.by d|efault..|
|00005380| 0a 28 64 65 66 76 61 72 | 20 65 66 73 2d 76 65 72 |.(defvar| efs-ver|
|00005390| 69 66 79 2d 61 6e 6f 6e | 79 6d 6f 75 73 2d 6d 6f |ify-anon|ymous-mo|
|000053a0| 64 74 69 6d 65 20 6e 69 | 6c 20 28 23 24 20 2e 20 |dtime ni|l (#$ . |
|000053b0| 2d 32 31 30 37 30 29 29 | 0a 23 40 32 39 33 20 2a |-21070))|.#@293 *|
|000053c0| 52 65 67 65 78 70 20 74 | 6f 20 6d 61 74 63 68 20 |Regexp t|o match |
|000053d0| 68 6f 73 74 20 6e 61 6d | 65 73 20 66 6f 72 20 77 |host nam|es for w|
|000053e0| 68 69 63 68 20 65 66 73 | 20 63 68 65 63 6b 73 20 |hich efs| checks |
|000053f0| 66 69 6c 65 20 6d 6f 64 | 74 69 6d 65 73 2e 0a 49 |file mod|times..I|
|00005400| 66 20 6e 6f 6e 2d 6e 69 | 6c 2c 20 65 66 73 20 77 |f non-ni|l, efs w|
|00005410| 69 6c 6c 20 72 75 6e 20 | 60 76 65 72 69 66 79 2d |ill run |`verify-|
|00005420| 76 69 73 69 74 65 64 2d | 66 69 6c 65 2d 6d 6f 64 |visited-|file-mod|
|00005430| 74 69 6d 65 27 20 66 6f | 72 20 72 65 6d 6f 74 65 |time' fo|r remote|
|00005440| 0a 66 69 6c 65 73 20 6f | 6e 20 68 6f 73 74 73 20 |.files o|n hosts |
|00005450| 6d 61 74 63 68 69 6e 67 | 20 74 68 69 73 20 72 65 |matching| this re|
|00005460| 67 65 78 70 2e 20 49 66 | 20 6e 69 6c 2c 20 76 65 |gexp. If| nil, ve|
|00005470| 72 69 66 79 2d 76 69 73 | 69 74 65 64 2d 66 69 6c |rify-vis|ited-fil|
|00005480| 65 2d 6d 6f 64 74 69 6d | 65 0a 69 73 20 73 75 70 |e-modtim|e.is sup|
|00005490| 72 65 73 73 65 64 20 66 | 6f 72 20 61 6c 6c 20 72 |ressed f|or all r|
|000054a0| 65 6d 6f 74 65 20 68 6f | 73 74 73 2e 20 54 68 69 |emote ho|sts. Thi|
|000054b0| 73 20 69 73 20 74 65 73 | 74 65 64 20 62 65 66 6f |s is tes|ted befo|
|000054c0| 72 65 0a 60 65 66 73 2d | 76 65 72 69 66 79 2d 61 |re.`efs-|verify-a|
|000054d0| 6e 6f 6e 79 6d 6f 75 73 | 2d 6d 6f 64 74 69 6d 65 |nonymous|-modtime|
|000054e0| 27 2e 1f 0a 28 64 65 66 | 76 61 72 20 65 66 73 2d |'...(def|var efs-|
|000054f0| 76 65 72 69 66 79 2d 6d | 6f 64 74 69 6d 65 2d 68 |verify-m|odtime-h|
|00005500| 6f 73 74 2d 72 65 67 65 | 78 70 20 22 2e 2a 22 20 |ost-rege|xp ".*" |
|00005510| 28 23 24 20 2e 20 2d 32 | 31 34 33 39 29 29 0a 23 |(#$ . -2|1439)).#|
|00005520| 40 32 36 39 20 2a 49 66 | 20 6e 6f 6e 2d 6e 69 6c |@269 *If| non-nil|
|00005530| 2c 20 65 66 73 20 77 69 | 6c 6c 20 61 74 74 65 6d |, efs wi|ll attem|
|00005540| 70 74 20 74 6f 20 6d 61 | 78 69 6d 69 7a 65 20 74 |pt to ma|ximize t|
|00005550| 68 65 20 69 64 6c 65 20 | 74 69 6d 65 20 6f 75 74 |he idle |time out|
|00005560| 20 70 65 72 69 6f 64 2e | 0a 41 74 20 73 6f 6d 65 | period.|.At some|
|00005570| 20 69 64 6c 65 20 6d 6f | 6d 65 6e 74 20 69 6e 20 | idle mo|ment in |
|00005580| 74 68 65 20 63 6f 6e 6e | 65 63 74 69 6f 6e 20 61 |the conn|ection a|
|00005590| 66 74 65 72 20 6c 6f 67 | 69 6e 2c 20 65 66 73 20 |fter log|in, efs |
|000055a0| 77 69 6c 6c 20 61 74 74 | 65 6d 70 74 20 74 6f 0a |will att|empt to.|
|000055b0| 73 65 74 20 74 68 65 20 | 69 64 6c 65 20 74 69 6d |set the |idle tim|
|000055c0| 65 20 6f 75 74 20 70 65 | 72 69 6f 64 20 74 6f 20 |e out pe|riod to |
|000055d0| 74 68 65 20 6d 61 78 69 | 6d 75 6d 20 61 6d 6f 75 |the maxi|mum amou|
|000055e0| 6e 74 20 61 6c 6c 6f 77 | 65 64 20 62 79 20 74 68 |nt allow|ed by th|
|000055f0| 65 20 73 65 72 76 65 72 | 2e 0a 49 74 20 61 70 70 |e server|..It app|
|00005600| 6c 69 65 73 20 6f 6e 6c | 79 20 74 6f 20 6e 6f 6e |lies onl|y to non|
|00005610| 2d 61 6e 6f 6e 79 6d 6f | 75 73 20 6c 6f 67 69 6e |-anonymo|us login|
|00005620| 73 20 6f 6e 20 75 6e 69 | 78 20 68 6f 73 74 73 2e |s on uni|x hosts.|
|00005630| 1f 0a 28 64 65 66 76 61 | 72 20 65 66 73 2d 6d 61 |..(defva|r efs-ma|
|00005640| 78 69 6d 69 7a 65 2d 69 | 64 6c 65 20 6e 69 6c 20 |ximize-i|dle nil |
|00005650| 28 23 24 20 2e 20 2d 32 | 31 37 39 37 29 29 0a 23 |(#$ . -2|1797)).#|
|00005660| 40 31 38 31 20 2a 49 66 | 20 6e 6f 6e 2d 6e 69 6c |@181 *If| non-nil|
|00005670| 20 66 74 70 20 62 75 66 | 66 65 72 73 20 77 69 6c | ftp buf|fers wil|
|00005680| 6c 20 62 65 20 65 78 70 | 69 72 65 64 2e 0a 54 68 |l be exp|ired..Th|
|00005690| 65 20 62 75 66 66 65 72 | 73 20 77 69 6c 6c 20 62 |e buffer|s will b|
|000056a0| 65 20 6b 69 6c 6c 65 64 | 20 65 69 74 68 65 72 20 |e killed| either |
|000056b0| 61 66 74 65 72 20 60 65 | 66 73 2d 66 74 70 2d 62 |after `e|fs-ftp-b|
|000056c0| 75 66 66 65 72 2d 65 78 | 70 69 72 65 2d 74 69 6d |uffer-ex|pire-tim|
|000056d0| 65 27 20 68 61 73 0a 65 | 6c 61 70 73 65 64 20 77 |e' has.e|lapsed w|
|000056e0| 69 74 68 20 6e 6f 20 61 | 63 74 69 76 69 74 79 2c |ith no a|ctivity,|
|000056f0| 20 6f 72 20 74 68 65 20 | 72 65 6d 6f 74 65 20 46 | or the |remote F|
|00005700| 54 50 20 73 65 72 76 65 | 72 20 68 61 73 20 74 69 |TP serve|r has ti|
|00005710| 6d 65 64 20 6f 75 74 2e | 1f 0a 28 64 65 66 76 61 |med out.|..(defva|
|00005720| 72 20 65 66 73 2d 65 78 | 70 69 72 65 2d 66 74 70 |r efs-ex|pire-ftp|
|00005730| 2d 62 75 66 66 65 72 73 | 20 74 20 28 23 24 20 2e |-buffers| t (#$ .|
|00005740| 20 2d 32 32 31 31 37 29 | 29 0a 23 40 32 38 34 20 | -22117)|).#@284 |
|00005750| 2a 49 66 20 6e 6f 6e 2d | 6e 69 6c 2c 20 74 68 65 |*If non-|nil, the|
|00005760| 20 74 69 6d 65 20 61 66 | 74 65 72 20 77 68 69 63 | time af|ter whic|
|00005770| 68 20 66 74 70 20 62 75 | 66 66 65 72 73 20 77 69 |h ftp bu|ffers wi|
|00005780| 6c 6c 20 62 65 20 65 78 | 70 69 72 65 64 2e 0a 49 |ll be ex|pired..I|
|00005790| 66 20 6e 69 6c 2c 20 66 | 74 70 20 62 75 66 66 65 |f nil, f|tp buffe|
|000057a0| 72 73 20 77 69 6c 6c 20 | 62 65 20 65 78 70 69 72 |rs will |be expir|
|000057b0| 65 64 20 6f 6e 6c 79 20 | 77 68 65 6e 20 74 68 65 |ed only |when the|
|000057c0| 20 72 65 6d 6f 74 65 20 | 73 65 72 76 65 72 20 68 | remote |server h|
|000057d0| 61 73 20 74 69 6d 65 64 | 20 6f 75 74 2e 0a 49 66 |as timed| out..If|
|000057e0| 20 61 6e 20 69 6e 74 65 | 67 65 72 2c 20 66 74 70 | an inte|ger, ftp|
|000057f0| 20 62 75 66 66 65 72 73 | 20 77 69 6c 6c 20 62 65 | buffers| will be|
|00005800| 20 65 78 70 69 72 65 64 | 20 65 69 74 68 65 72 20 | expired| either |
|00005810| 77 68 65 6e 20 74 68 65 | 20 72 65 6d 6f 74 65 20 |when the| remote |
|00005820| 73 65 72 76 65 72 0a 68 | 61 73 20 74 69 6d 65 64 |server.h|as timed|
|00005830| 20 6f 75 74 2c 20 6f 72 | 20 77 68 65 6e 20 74 68 | out, or| when th|
|00005840| 69 73 20 6d 61 6e 79 20 | 73 65 63 6f 6e 64 73 20 |is many |seconds |
|00005850| 6f 6e 20 69 6e 61 63 74 | 69 76 69 74 79 20 68 61 |on inact|ivity ha|
|00005860| 73 20 65 6c 61 70 73 65 | 64 2e 1f 0a 28 64 65 66 |s elapse|d...(def|
|00005870| 76 61 72 20 65 66 73 2d | 66 74 70 2d 62 75 66 66 |var efs-|ftp-buff|
|00005880| 65 72 2d 65 78 70 69 72 | 65 2d 74 69 6d 65 20 6e |er-expir|e-time n|
|00005890| 69 6c 20 28 23 24 20 2e | 20 2d 32 32 33 35 32 29 |il (#$ .| -22352)|
|000058a0| 29 0a 23 40 32 31 33 20 | 2a 4e 75 6d 62 65 72 20 |).#@213 |*Number |
|000058b0| 6f 66 20 73 65 63 6f 6e | 64 73 20 74 6f 20 77 61 |of secon|ds to wa|
|000058c0| 69 74 20 62 65 66 6f 72 | 65 20 72 65 74 72 79 69 |it befor|e retryi|
|000058d0| 6e 67 20 69 66 20 64 61 | 74 61 20 64 6f 65 73 6e |ng if da|ta doesn|
|000058e0| 27 74 20 61 72 72 69 76 | 65 2e 0a 54 68 65 20 46 |'t arriv|e..The F|
|000058f0| 54 50 20 63 6f 6d 6d 61 | 6e 64 20 69 73 6e 27 74 |TP comma|nd isn't|
|00005900| 20 72 65 74 72 69 65 64 | 2c 20 72 61 74 68 65 72 | retried|, rather|
|00005910| 20 65 66 73 20 6a 75 73 | 74 20 74 61 6b 65 73 20 | efs jus|t takes |
|00005920| 61 20 73 65 63 6f 6e 64 | 20 6c 6f 6f 6b 0a 66 6f |a second| look.fo|
|00005930| 72 20 74 68 65 20 64 61 | 74 61 20 66 69 6c 65 2e |r the da|ta file.|
|00005940| 20 54 68 69 73 20 6d 69 | 67 68 74 20 6e 65 65 64 | This mi|ght need|
|00005950| 20 74 6f 20 62 65 20 69 | 6e 63 72 65 61 73 65 64 | to be i|ncreased|
|00005960| 20 66 6f 72 20 76 65 72 | 79 20 73 6c 6f 77 20 46 | for ver|y slow F|
|00005970| 54 50 0a 63 6c 69 65 6e | 74 73 2e 1f 0a 28 64 65 |TP.clien|ts...(de|
|00005980| 66 76 61 72 20 65 66 73 | 2d 72 65 74 72 79 2d 74 |fvar efs|-retry-t|
|00005990| 69 6d 65 20 35 20 28 23 | 24 20 2e 20 2d 32 32 36 |ime 5 (#|$ . -226|
|000059a0| 39 36 29 29 0a 23 40 33 | 33 37 20 2a 48 6f 77 20 |96)).#@3|37 *How |
|000059b0| 6c 6f 6e 67 20 65 66 73 | 20 77 61 69 74 73 20 62 |long efs| waits b|
|000059c0| 65 66 6f 72 65 20 64 65 | 63 69 64 69 6e 67 20 74 |efore de|ciding t|
|000059d0| 68 61 74 20 69 74 20 64 | 6f 65 73 6e 27 74 20 68 |hat it d|oesn't h|
|000059e0| 61 76 65 20 61 20 70 74 | 79 2e 0a 53 70 65 63 69 |ave a pt|y..Speci|
|000059f0| 66 69 63 61 6c 6c 79 20 | 69 74 20 69 73 20 74 68 |fically |it is th|
|00005a00| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 69 74 65 72 |e number| of iter|
|00005a10| 61 74 69 6f 6e 73 20 74 | 68 72 6f 75 67 68 20 60 |ations t|hrough `|
|00005a20| 61 63 63 65 70 74 2d 70 | 72 6f 63 65 73 73 2d 6f |accept-p|rocess-o|
|00005a30| 75 74 70 75 74 27 0a 74 | 68 61 74 20 60 65 66 73 |utput'.t|hat `efs|
|00005a40| 2d 70 74 79 2d 70 27 20 | 77 61 69 74 73 20 62 65 |-pty-p' |waits be|
|00005a50| 66 6f 72 65 20 64 65 63 | 69 64 69 6e 67 20 74 68 |fore dec|iding th|
|00005a60| 61 74 20 74 68 65 20 70 | 74 79 20 69 73 20 72 65 |at the p|ty is re|
|00005a70| 61 6c 6c 79 20 61 20 70 | 69 70 65 2e 0a 53 65 74 |ally a p|ipe..Set|
|00005a80| 20 74 68 69 73 20 74 6f | 20 6e 69 6c 20 74 6f 20 | this to| nil to |
|00005a90| 69 6e 68 69 62 69 74 20 | 63 68 65 63 6b 69 6e 67 |inhibit |checking|
|00005aa0| 20 66 6f 72 20 70 74 79 | 27 73 2e 20 49 66 20 65 | for pty|'s. If e|
|00005ab0| 66 73 20 73 65 65 6d 73 | 20 74 6f 20 62 65 0a 6d |fs seems| to be.m|
|00005ac0| 69 73 74 61 6b 69 6e 67 | 20 73 6f 6d 65 20 70 74 |istaking| some pt|
|00005ad0| 79 27 73 20 66 6f 72 20 | 70 69 70 65 73 2c 20 74 |y's for |pipes, t|
|00005ae0| 72 79 20 69 6e 63 72 65 | 61 73 69 6e 67 20 74 68 |ry incre|asing th|
|00005af0| 69 73 20 6e 75 6d 62 65 | 72 2e 1f 0a 28 64 65 66 |is numbe|r...(def|
|00005b00| 76 61 72 20 65 66 73 2d | 70 74 79 2d 63 68 65 63 |var efs-|pty-chec|
|00005b10| 6b 2d 74 68 72 65 73 68 | 6f 6c 64 20 31 30 30 30 |k-thresh|old 1000|
|00005b20| 20 28 23 24 20 2e 20 2d | 32 32 39 35 35 29 29 0a | (#$ . -|22955)).|
|00005b30| 23 40 31 32 35 20 2a 4e | 75 6d 62 65 72 20 6f 66 |#@125 *N|umber of|
|00005b40| 20 73 65 63 6f 6e 64 73 | 20 74 68 61 74 20 65 66 | seconds| that ef|
|00005b50| 73 20 77 61 69 74 73 20 | 62 65 66 6f 72 65 20 72 |s waits |before r|
|00005b60| 65 74 72 79 69 6e 67 20 | 61 20 70 74 79 20 63 68 |etrying |a pty ch|
|00005b70| 65 63 6b 2e 0a 54 68 69 | 73 20 63 61 6e 20 62 65 |eck..Thi|s can be|
|00005b80| 20 6c 65 6e 67 74 68 65 | 6e 65 64 2c 20 69 66 20 | lengthe|ned, if |
|00005b90| 79 6f 75 72 20 46 54 50 | 20 63 6c 69 65 6e 74 20 |your FTP| client |
|00005ba0| 69 73 20 73 6c 6f 77 20 | 74 6f 20 73 74 61 72 74 |is slow |to start|
|00005bb0| 2e 1f 0a 28 64 65 66 76 | 61 72 20 65 66 73 2d 70 |...(defv|ar efs-p|
|00005bc0| 74 79 2d 63 68 65 63 6b | 2d 72 65 74 72 79 2d 74 |ty-check|-retry-t|
|00005bd0| 69 6d 65 20 35 20 28 23 | 24 20 2e 20 2d 32 33 33 |ime 5 (#|$ . -233|
|00005be0| 35 30 29 29 0a 23 40 34 | 39 35 20 2a 49 66 20 6e |50)).#@4|95 *If n|
|00005bf0| 6f 6e 2d 6e 69 6c 2c 20 | 60 65 66 73 2d 61 62 6f |on-nil, |`efs-abo|
|00005c00| 72 74 2d 72 65 63 75 72 | 73 69 76 65 2d 65 64 69 |rt-recur|sive-edi|
|00005c10| 74 2d 61 6e 64 2d 74 68 | 65 6e 27 20 77 69 6c 6c |t-and-th|en' will|
|00005c20| 20 6e 6f 74 20 72 75 6e | 20 69 74 73 20 66 75 6e | not run| its fun|
|00005c30| 63 74 69 6f 6e 2e 0a 54 | 68 69 73 20 6d 65 61 6e |ction..T|his mean|
|00005c40| 73 20 74 68 61 74 20 77 | 68 65 6e 20 61 20 72 65 |s that w|hen a re|
|00005c50| 63 75 72 73 69 76 65 20 | 65 64 69 74 20 69 73 20 |cursive |edit is |
|00005c60| 69 6e 20 70 72 6f 67 72 | 65 73 73 2c 20 61 75 74 |in progr|ess, aut|
|00005c70| 6f 6d 61 74 69 63 20 70 | 6f 70 70 69 6e 67 20 6f |omatic p|opping o|
|00005c80| 66 20 74 68 65 0a 46 54 | 50 20 70 72 6f 63 65 73 |f the.FT|P proces|
|00005c90| 73 20 62 75 66 66 65 72 | 2c 20 61 6e 64 20 61 75 |s buffer|, and au|
|00005ca0| 74 6f 6d 61 74 69 63 20 | 70 6f 70 70 69 6e 67 20 |tomatic |popping |
|00005cb0| 6f 66 20 74 68 65 20 62 | 75 67 20 72 65 70 6f 72 |of the b|ug repor|
|00005cc0| 74 20 62 75 66 66 65 72 | 20 77 69 6c 6c 20 6e 6f |t buffer| will no|
|00005cd0| 74 0a 77 6f 72 6b 2e 20 | 60 65 66 73 2d 61 62 6f |t.work. |`efs-abo|
|00005ce0| 72 74 2d 72 65 63 75 72 | 73 69 76 65 2d 65 64 69 |rt-recur|sive-edi|
|00005cf0| 74 2d 61 6e 64 2d 74 68 | 65 6e 27 20 77 6f 72 6b |t-and-th|en' work|
|00005d00| 73 20 62 79 20 66 6f 72 | 6b 69 6e 67 20 61 20 22 |s by for|king a "|
|00005d10| 73 6c 65 65 70 20 30 22 | 0a 70 72 6f 63 65 73 73 |sleep 0"|.process|
|00005d20| 2e 20 4f 6e 20 73 6f 6d | 65 20 75 6e 69 78 20 69 |. On som|e unix i|
|00005d30| 6d 70 6c 65 6d 65 6e 74 | 61 74 69 6f 6e 73 20 74 |mplement|ations t|
|00005d40| 68 65 20 66 6f 72 6b 65 | 64 20 70 72 6f 63 65 73 |he forke|d proces|
|00005d50| 73 20 6d 69 67 68 74 20 | 62 65 20 6f 66 20 74 68 |s might |be of th|
|00005d60| 65 20 73 61 6d 65 0a 73 | 69 7a 65 20 61 73 20 74 |e same.s|ize as t|
|00005d70| 68 65 20 6f 72 69 67 69 | 6e 61 6c 20 47 4e 55 20 |he origi|nal GNU |
|00005d80| 45 6d 61 63 73 20 70 72 | 6f 63 65 73 73 2e 20 46 |Emacs pr|ocess. F|
|00005d90| 6f 72 6b 69 6e 67 20 73 | 75 63 68 20 61 20 6c 61 |orking s|uch a la|
|00005da0| 72 67 65 20 70 72 6f 63 | 65 73 73 20 6a 75 73 74 |rge proc|ess just|
|00005db0| 20 74 6f 0a 64 6f 20 61 | 20 22 73 6c 65 65 70 20 | to.do a| "sleep |
|00005dc0| 30 22 20 69 73 20 70 72 | 6f 62 61 62 6c 79 20 6e |0" is pr|obably n|
|00005dd0| 6f 74 20 67 6f 6f 64 2e | 1f 0a 28 64 65 66 76 61 |ot good.|..(defva|
|00005de0| 72 20 65 66 73 2d 73 75 | 70 70 72 65 73 73 2d 61 |r efs-su|ppress-a|
|00005df0| 62 6f 72 74 2d 72 65 63 | 75 72 73 69 76 65 2d 65 |bort-rec|ursive-e|
|00005e00| 64 69 74 2d 61 6e 64 2d | 74 68 65 6e 20 6e 69 6c |dit-and-|then nil|
|00005e10| 20 28 23 24 20 2e 20 2d | 32 33 35 33 31 29 29 0a | (#$ . -|23531)).|
|00005e20| 23 40 31 34 36 20 46 6f | 72 6d 61 74 20 74 6f 20 |#@146 Fo|rmat to |
|00005e30| 63 6f 6e 73 74 72 75 63 | 74 20 74 68 65 20 6e 61 |construc|t the na|
|00005e40| 6d 65 20 6f 66 20 46 54 | 50 20 70 72 6f 63 65 73 |me of FT|P proces|
|00005e50| 73 20 62 75 66 66 65 72 | 73 2e 0a 54 68 69 73 20 |s buffer|s..This |
|00005e60| 73 74 72 69 6e 67 20 69 | 73 20 66 65 64 20 74 6f |string i|s fed to|
|00005e70| 20 60 66 6f 72 6d 61 74 | 27 20 77 69 74 68 20 73 | `format|' with s|
|00005e80| 65 63 6f 6e 64 20 61 6e | 64 20 74 68 69 72 64 20 |econd an|d third |
|00005e90| 61 72 67 75 6d 65 6e 74 | 73 20 74 68 65 20 75 73 |argument|s the us|
|00005ea0| 65 72 0a 6e 61 6d 65 20 | 61 6e 64 20 68 6f 73 74 |er.name |and host|
|00005eb0| 20 6e 61 6d 65 2e 1f 0a | 28 64 65 66 76 61 72 20 | name...|(defvar |
|00005ec0| 65 66 73 2d 66 74 70 2d | 62 75 66 66 65 72 2d 66 |efs-ftp-|buffer-f|
|00005ed0| 6f 72 6d 61 74 20 22 2a | 66 74 70 20 25 73 40 25 |ormat "*|ftp %s@%|
|00005ee0| 73 2a 22 20 28 23 24 20 | 2e 20 32 34 31 30 32 29 |s*" (#$ |. 24102)|
|00005ef0| 29 0a 23 40 33 39 30 20 | 2a 49 66 20 6e 6f 6e 2d |).#@390 |*If non-|
|00005f00| 6e 69 6c 2c 20 74 68 65 | 20 75 73 65 72 20 77 69 |nil, the| user wi|
|00005f10| 6c 6c 20 62 65 20 70 65 | 72 6d 69 74 74 65 64 20 |ll be pe|rmitted |
|00005f20| 74 6f 20 64 65 62 75 67 | 20 74 68 65 20 46 54 50 |to debug| the FTP|
|00005f30| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 2e 0a 54 68 69 | connect|ion..Thi|
|00005f40| 73 20 6d 65 61 6e 73 20 | 74 68 61 74 20 74 79 70 |s means |that typ|
|00005f50| 69 6e 67 20 61 20 43 2d | 67 20 74 6f 20 74 68 65 |ing a C-|g to the|
|00005f60| 20 46 54 50 20 70 72 6f | 63 65 73 73 20 66 69 6c | FTP pro|cess fil|
|00005f70| 74 65 72 20 77 69 6c 6c | 20 67 69 76 65 20 74 68 |ter will| give th|
|00005f80| 65 20 75 73 65 72 0a 74 | 68 65 20 6f 70 74 69 6f |e user.t|he optio|
|00005f90| 6e 20 74 6f 20 74 79 70 | 65 20 63 6f 6d 6d 61 6e |n to typ|e comman|
|00005fa0| 64 73 20 61 74 20 74 68 | 65 20 46 54 50 20 63 6f |ds at th|e FTP co|
|00005fb0| 6e 6e 65 63 74 69 6f 6e | 2e 20 20 4e 6f 72 6d 61 |nnection|. Norma|
|00005fc0| 6c 6c 79 2c 20 74 68 65 | 20 63 6f 6e 6e 65 63 74 |lly, the| connect|
|00005fd0| 69 6f 6e 0a 69 73 20 6b | 69 6c 6c 65 64 20 66 69 |ion.is k|illed fi|
|00005fe0| 72 73 74 2e 20 20 4e 6f | 74 65 20 74 68 61 74 20 |rst. No|te that |
|00005ff0| 64 6f 69 6e 67 20 74 68 | 69 73 20 6d 61 79 20 72 |doing th|is may r|
|00006000| 65 73 75 6c 74 20 69 6e | 20 74 68 65 20 46 54 50 |esult in| the FTP|
|00006010| 20 70 72 6f 63 65 73 73 | 20 66 69 6c 74 65 72 0a | process| filter.|
|00006020| 67 65 74 74 69 6e 67 20 | 6f 75 74 20 6f 66 20 73 |getting |out of s|
|00006030| 79 6e 63 68 20 77 69 74 | 68 20 74 68 65 20 46 54 |ynch wit|h the FT|
|00006040| 50 20 63 6c 69 65 6e 74 | 2c 20 73 6f 20 75 73 69 |P client|, so usi|
|00006050| 6e 67 20 74 68 69 73 20 | 66 65 61 74 75 72 65 20 |ng this |feature |
|00006060| 72 6f 75 74 69 6e 65 6c | 79 0a 69 73 6e 27 74 20 |routinel|y.isn't |
|00006070| 72 65 63 6f 6d 6d 65 6e | 64 65 64 2e 1f 0a 28 64 |recommen|ded...(d|
|00006080| 65 66 76 61 72 20 65 66 | 73 2d 64 65 62 75 67 2d |efvar ef|s-debug-|
|00006090| 66 74 70 2d 63 6f 6e 6e | 65 63 74 69 6f 6e 20 6e |ftp-conn|ection n|
|000060a0| 69 6c 20 28 23 24 20 2e | 20 2d 32 34 33 31 32 29 |il (#$ .| -24312)|
|000060b0| 29 0a 23 40 37 34 20 2a | 49 66 20 6e 6f 6e 2d 6e |).#@74 *|If non-n|
|000060c0| 69 6c 2c 20 74 68 65 20 | 66 74 70 20 63 6c 69 65 |il, the |ftp clie|
|000060d0| 6e 74 20 77 69 6c 6c 20 | 73 70 65 63 69 66 79 20 |nt will |specify |
|000060e0| 70 61 73 73 69 76 65 20 | 6d 6f 64 65 20 66 6f 72 |passive |mode for|
|000060f0| 20 61 6c 6c 20 74 72 61 | 6e 73 66 65 72 73 2e 1f | all tra|nsfers..|
|00006100| 0a 28 64 65 66 76 61 72 | 20 65 66 73 2d 75 73 65 |.(defvar| efs-use|
|00006110| 2d 70 61 73 73 69 76 65 | 2d 6d 6f 64 65 20 6e 69 |-passive|-mode ni|
|00006120| 6c 20 28 23 24 20 2e 20 | 2d 32 34 37 35 39 29 29 |l (#$ . |-24759))|
|00006130| 0a 23 40 31 31 30 20 48 | 6f 6f 6b 20 74 6f 20 72 |.#@110 H|ook to r|
|00006140| 75 6e 20 69 6d 6d 65 64 | 69 61 74 65 6c 79 20 61 |un immed|iately a|
|00006150| 66 74 65 72 20 73 74 61 | 72 74 69 6e 67 20 74 68 |fter sta|rting th|
|00006160| 65 20 46 54 50 20 63 6c | 69 65 6e 74 2e 0a 54 68 |e FTP cl|ient..Th|
|00006170| 69 73 20 68 6f 6f 6b 20 | 69 73 20 72 75 6e 20 62 |is hook |is run b|
|00006180| 65 66 6f 72 65 20 74 68 | 65 20 46 54 50 20 4f 50 |efore th|e FTP OP|
|00006190| 45 4e 20 63 6f 6d 6d 61 | 6e 64 20 69 73 20 73 65 |EN comma|nd is se|
|000061a0| 6e 74 2e 1f 0a 28 64 65 | 66 76 61 72 20 65 66 73 |nt...(de|fvar efs|
|000061b0| 2d 66 74 70 2d 73 74 61 | 72 74 75 70 2d 68 6f 6f |-ftp-sta|rtup-hoo|
|000061c0| 6b 20 6e 69 6c 20 28 23 | 24 20 2e 20 32 34 38 38 |k nil (#|$ . 2488|
|000061d0| 37 29 29 0a 23 40 33 37 | 39 20 41 73 73 6f 63 69 |7)).#@37|9 Associ|
|000061e0| 61 74 69 6f 6e 20 6c 69 | 73 74 20 6f 66 20 66 75 |ation li|st of fu|
|000061f0| 6e 63 74 69 6f 6e 73 20 | 74 6f 20 72 75 6e 6e 69 |nctions |to runni|
|00006200| 6e 67 20 61 66 74 65 72 | 20 46 54 50 20 6c 6f 67 |ng after| FTP log|
|00006210| 69 6e 2e 0a 54 68 69 73 | 20 73 68 6f 75 6c 64 20 |in..This| should |
|00006220| 62 65 20 61 6e 20 61 6c | 69 73 74 20 6f 66 20 74 |be an al|ist of t|
|00006230| 68 65 20 66 6f 72 6d 20 | 27 28 28 52 45 47 45 58 |he form |'((REGEX|
|00006240| 50 20 2e 20 46 55 4e 43 | 54 49 4f 4e 29 20 2e 2e |P . FUNC|TION) ..|
|00006250| 2e 29 2c 20 77 68 65 72 | 65 0a 52 45 47 45 58 50 |.), wher|e.REGEXP|
|00006260| 20 69 73 20 61 20 72 65 | 67 75 6c 61 72 20 65 78 | is a re|gular ex|
|00006270| 70 72 65 73 73 69 6f 6e | 20 6d 61 74 63 68 65 64 |pression| matched|
|00006280| 20 61 67 61 69 6e 73 74 | 20 74 68 65 20 6e 61 6d | against| the nam|
|00006290| 65 20 6f 66 20 74 68 65 | 20 72 65 6d 6f 74 65 20 |e of the| remote |
|000062a0| 68 6f 73 74 2c 0a 61 6e | 64 20 46 55 4e 43 54 49 |host,.an|d FUNCTI|
|000062b0| 4f 4e 20 69 73 20 61 20 | 66 75 6e 63 74 69 6f 6e |ON is a |function|
|000062c0| 20 6f 66 20 74 77 6f 20 | 61 72 67 75 6d 65 6e 74 | of two |argument|
|000062d0| 73 2c 20 48 4f 53 54 20 | 61 6e 64 20 55 53 45 52 |s, HOST |and USER|
|000062e0| 2e 20 52 45 47 45 58 50 | 20 69 73 0a 63 6f 6d 70 |. REGEXP| is.comp|
|000062f0| 61 72 65 64 20 74 6f 20 | 74 68 65 20 68 6f 73 74 |ared to |the host|
|00006300| 20 6e 61 6d 65 20 77 69 | 74 68 20 60 63 61 73 65 | name wi|th `case|
|00006310| 2d 66 6f 6c 64 2d 73 65 | 61 72 63 68 27 20 62 6f |-fold-se|arch' bo|
|00006320| 75 6e 64 20 74 6f 20 74 | 2e 20 4f 6e 6c 79 20 74 |und to t|. Only t|
|00006330| 68 65 20 66 69 72 73 74 | 0a 6d 61 74 63 68 20 69 |he first|.match i|
|00006340| 6e 20 74 68 65 20 61 6c | 69 73 74 20 69 73 20 72 |n the al|ist is r|
|00006350| 75 6e 2e 1f 0a 28 64 65 | 66 76 61 72 20 65 66 73 |un...(de|fvar efs|
|00006360| 2d 66 74 70 2d 73 74 61 | 72 74 75 70 2d 66 75 6e |-ftp-sta|rtup-fun|
|00006370| 63 74 69 6f 6e 2d 61 6c | 69 73 74 20 6e 69 6c 20 |ction-al|ist nil |
|00006380| 28 23 24 20 2e 20 32 35 | 30 35 30 29 29 0a 23 40 |(#$ . 25|050)).#@|
|00006390| 31 33 38 20 48 6f 6f 6b | 20 74 6f 20 72 75 6e 20 |138 Hook| to run |
|000063a0| 69 6d 6d 65 64 69 61 74 | 65 6c 79 20 61 66 74 65 |immediat|ely afte|
|000063b0| 72 20 6c 6f 61 64 69 6e | 67 20 65 66 73 2e 65 6c |r loadin|g efs.el|
|000063c0| 2e 0a 59 6f 75 20 63 61 | 6e 20 75 73 65 20 69 74 |..You ca|n use it|
|000063d0| 20 74 6f 20 61 6c 74 65 | 72 20 64 65 66 69 6e 69 | to alte|r defini|
|000063e0| 74 69 6f 6e 73 20 69 6e | 20 65 66 73 2e 65 6c 2c |tions in| efs.el,|
|000063f0| 20 62 75 74 20 77 68 79 | 20 77 6f 75 6c 64 20 79 | but why| would y|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.